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 was archived by the owner on Dec 7, 2019. It is now read-only.
* add filtering with device pattern
* fix the argument name and regax usage to filter devices
* fix syntax error
* ignore --device-pattern if --devices is passed
* Revert "ignore --device-pattern if --devices is passed"
This reverts commit 4333049.
* raise error if --devices and --device-patten passed
* add tests for error case
* fix remarks and define validateArguments as member function
* define a private method and use apply
// No way to share array both for runtime and annotation without reflection.
@@ -92,9 +93,22 @@ private class JCommanderArgs {
92
93
names = arrayOf("--devices"),
93
94
required =false,
94
95
variableArity =true,
95
-
description ="Connected devices/emulators that will be used to run tests against. If not passed — tests will run on all connected devices/emulators. Usage example: `--devices emulator-5554 emulator-5556`."
96
+
description ="Connected devices/emulators that will be used to run tests against. If not passed — tests will run on all connected devices/emulators. Specifying both `--devices` and `--device-pattern` will result in an error. Usage example: `--devices emulator-5554 emulator-5556`."
96
97
)
97
98
var devices:List<String>?=null
99
+
100
+
@Parameter(
101
+
names = arrayOf("--device-pattern"),
102
+
required =false,
103
+
description ="Connected devices/emulators that will be used to run tests against. If not passed — tests will run on all connected devices/emulators. Specifying both `--device-pattern` and `--devices` will result in an error. Usage example: `--device-pattern \"somePatterns\"`."
0 commit comments