Junit5 tests support for "Virtual Device Testing for Android"

#1

How to run Junit5 tests on the “Virtual device Testing for Android” step?

Is there a way to pass an instrumentationRunnerArgument to the step?

The Android Studio successfully grabs Junit5 configuration from the build.gradle and executes it.

 android {
    defaultConfig {
        testInstrumentationRunnerArgument(
            "runnerBuilder",
            "de.mannodermaus.junit5.AndroidJUnit5Builder"
        )
    }
}
0 Likes

#2

There is an Environment Variables input in Test Setup section.
You can runnerBuilder=de.mannodermaus.junit5.AndroidJUnit5Builder there.

1 Like

#3

Thanks! Works like a charm

0 Likes

closed #4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes