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

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

    When I use junit5, it's working. But every time I execute gradle --clean, I get Class not found error. Then I add this to build.gradle to resolve my problem and I can still use junit4:

    test {
    }
    

提交回复
热议问题