You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
With a bit of digging, it turns out that this is something that can be supported by the test runner itself. The AndroidJUnitRunner API doc states:
Filter test run to tests with given annotation: adb shell am instrument -w -e annotation com.android.foo.MyAnnotation com.android.foo/android.support.test.runner.AndroidJUnitRunner
If used with other options, the resulting test run will contain the intersection of the two options. e.g. "-e size large -e annotation com.android.foo.MyAnnotation" will run only tests with both the LargeTest and "com.android.foo.MyAnnotation" annotations.
Spoon already supports that by adding the flag --e. It should be easy to do the same and pass a map through from the Gradle plugin configuration or the CLI through to the Fork configuration object and to the com.shazam.fork.runner.TestRun#execute method calling the com.android.ddmlib.testrunner.RemoteAndroidTestRunner#addInstrumentationArg method.
Do filters work with fork? I was trying...
The text was updated successfully, but these errors were encountered: