android-junit5
android-junit5 copied to clipboard
How to use android command: am instrument to run testcase if testcase writed in main directory rather than test directory?
I write testcase in main dictory rather than test dictory , and run testcase with :adb shell am instrument xxx, then it report error:"Caused by: java.lang.IllegalArgumentException: Could not find extra class de.mannodermaus.junit5.AndroidJUnit5Builder" And I found out that the android-test.apk include the AndroidJUnit5Builder.class ,but the release.apk didnot include the AndroidJUnit5Builder.class, the plugin do something to pack the class to apk file.
So is there a way to use am instrument commond to run junit5 testcase ?