square / spoon

Distributing instrumentation tests to all your Androids.
https://square.github.io/spoon/
Apache License 2.0
2.7k stars 477 forks source link

Passing single-instrumentation-call breaks class-name filter #526

Closed JDFind closed 6 years ago

JDFind commented 6 years ago

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:

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

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