No tests found for given includes Error, when running Parameterized Unit test in Android Studio

前端 未结 17 2239
孤独总比滥情好
孤独总比滥情好 2021-01-31 07:03

I tried run Parameterized Unit Test as below in Android Studio.

import android.test.suitebuilder.annotation.SmallTest;  

import junit.framework.TestCase;    

i         


        
17条回答
  •  野性不改
    2021-01-31 07:19

    Steps:

    1. Add platform runner in build.gralde
      => testCompile group: 'org.junit.platform', name: 'junit-platform-runner', version: '1.7.0'
    2. Anotate test class with @RunWith => @RunWith(JunitPlatform.class)

提交回复
热议问题