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

前端 未结 17 2014
孤独总比滥情好
孤独总比滥情好 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:15

    If you are using intellij and want to use gradle you need to add this to the dependencies section of build.gradle file:

    testImplementation("org.junit.jupiter:junit-jupiter-api:5.4.2")
    testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.4.2")
    

提交回复
热议问题