When running tests with Spoon Runner 2.0.0 Snapshot (build from master), after specifying single-instrumentation-call, the class-name parameter is ignored.
Here are the logs of two different runs:
with only --class-name com.lorem.ipsum.uiTests.LoginTests, tests are filtered correctly
05:18:07 I/RemoteAndroidTest: Running am instrument -w -r -e log true -e class com.lorem.ipsum.uiTests.LoginTests com.lorem.ipsum.test/android.support.test.runner.AndroidJUnitRunner on hmd_global-ta_1053-10.10.194.220:7421
2018-02-23 17:18:10 [SDR.run] Active tests: [com.lorem.ipsum.uiTests.LoginTests#login]
2018-02-23 17:18:10 [SDR.run] Ignored tests: []
2018-02-23 17:18:10 [SDR.runTestOnDevice] Running com.lorem.ipsum.uiTests.LoginTests#login [10.10.194.220:7421]
05:18:10 I/RemoteAndroidTest: Running am instrument -w -r -e class com.lorem.ipsum.uiTests.LoginTests#login com.lorem.ipsum.test/android.support.test.runner.AndroidJUnitRunner on hmd_global-ta_1053-10.10.194.220:7421
with both --class-name com.lorem.ipsum.uiTests.LoginTests and --single-instrumentation, class-name filter is ignored and all tests are runned
05:09:55 I/RemoteAndroidTest: Running am instrument -w -r -e log true -e class com.lorem.ipsum.uiTests.LoginTests com.lorem.ipsum.test/android.support.test.runner.AndroidJUnitRunner on hmd_global-ta_1053-10.10.194.220:7421
2018-02-23 17:09:58 [SDR.run] Active tests: [com.lorem.ipsum.uiTests.LoginTests#login]
2018-02-23 17:09:58 [SDR.run] Ignored tests: []
2018-02-23 17:09:58 [SDR.run] Running all tests in a single instrumentation call [10.10.194.220:7421]
2018-02-23 17:09:58 [SDR.runTestOnDevice] Running tests [10.10.194.220:7421]
05:09:58 I/RemoteAndroidTest: Running am instrument -w -r com.lorem.ipsum.test/android.support.test.runner.AndroidJUnitRunner on hmd_global-ta_1053-10.10.194.220:7421
When running tests with Spoon Runner 2.0.0 Snapshot (build from
master
), after specifyingsingle-instrumentation-call
, theclass-name
parameter is ignored.Here are the logs of two different runs:
--class-name com.lorem.ipsum.uiTests.LoginTests
, tests are filtered correctly--class-name com.lorem.ipsum.uiTests.LoginTests
and--single-instrumentation
, class-name filter is ignored and all tests are runned