Skip to content

How to use android command: am instrument to run testcase if testcase writed in main directory rather than test directory?  #360

Open
@yanweishr

Description

@yanweishr

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions