Skip to content
This repository was archived by the owner on Dec 7, 2019. It is now read-only.

Commit c14894f

Browse files
artem-zinnatullinyunikkk
authored andcommitted
Restructure list of options, add examples and defaults. (#137)
1 parent 5319795 commit c14894f

File tree

1 file changed

+37
-14
lines changed

1 file changed

+37
-14
lines changed

README.md

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,33 +64,56 @@ Composer shipped as jar, to run it you need JVM 1.8+: `java -jar composer-latest
6464
##### Required
6565

6666
* `--apk`
67-
* Path to application apk that needs to be tested.
67+
* Either relative or absolute path to application apk that needs to be tested.
68+
* Example: `--apk myapp.apk`
6869
* `--test-apk`
69-
* Path to apk with tests.
70+
* Either relative or absolute path to apk with tests.
71+
* Example: `--test-apk myapp-androidTest.apk`
7072

7173
##### Optional
7274

73-
* `--test-runner`
74-
* Fully qualified name of test runner class you're using. Parsed from `--test-apk`, if not specified manually.
7575
* `--help, -help, help, -h`
7676
* Print help and exit.
77+
* `--test-runner`
78+
* Fully qualified name of test runner class you're using.
79+
* Default: automatically parsed from `--test-apk`'s `AndroidManifest`.
80+
* Example: `--test-runner com.example.TestRunner`
7781
* `--shard`
78-
* Either `true` or `false` to enable/disable [test sharding][test sharding] which runs shards tests to available devices/emulators. True by default.
82+
* Either `true` or `false` to enable/disable [test sharding][test sharding] which statically shards tests between available devices/emulators.
83+
* Default: `true`.
84+
* Example: `--shard false`
7985
* `--output-directory`
80-
* Either relative or absolute path to directory for output: reports, files from devices and so on. `composer-output` by default.
86+
* Either relative or absolute path to directory for output: reports, files from devices and so on.
87+
* Default: `composer-output` in current working directory.
88+
* Example: `--output-directory artifacts/composer-output`
8189
* `--instrumentation-arguments`
82-
* Key-value pairs to pass to Instrumentation Runner. Usage example: `--instrumentation-arguments myKey1 myValue1 myKey2 myValue2`.
90+
* Key-value pairs to pass to Instrumentation Runner.
91+
* Default: empty.
92+
* Example: `--instrumentation-arguments myKey1 myValue1 myKey2 myValue2`.
8393
* `--verbose-output`
84-
* Either `true` or `false` to enable/disable verbose output for Composer. `false` by default.
94+
* Either `true` or `false` to enable/disable verbose output for Composer.
95+
* Default: `false`.
96+
* Example: `--verbose-output true`
8597
* `--keep-output-on-exit`
86-
* Either `true` or `false` to keep/clean output on exit. `false` by default.".
98+
* Either `true` or `false` to keep/clean temporary output files used by Composer on exit.
99+
* Default: `false`.
100+
* Composer uses files to pipe output of external commands like `adb`, keeping them might be useful for debugging issues.
101+
* Example: `--keep-output-on-exit true`
87102
* `--devices`
88-
* 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`.
103+
* Connected devices/emulators that will be used to run tests against.
104+
* Default: empty, tests will run on all connected devices/emulators.
105+
* Specifying both `--devices` and `--device-pattern` will result in an error.
106+
* Example: `--devices emulator-5554 emulator-5556`
89107
* `--device-pattern`
90-
* 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 "emulator.+"`.
108+
* Connected devices/emulators that will be used to run tests against.
109+
* Default: empty, tests will run on all connected devices/emulators.
110+
* Specifying both `--device-pattern` and `--devices` will result in an error.
111+
* Example: `--device-pattern "emulator.+"`
91112
* `--install-timeout`
92-
* APK installation timeout in seconds. If not passed defaults to 120 seconds (2 minutes). Applicable to both test APK and APK under test. Usage
93-
example (for 10 minutes timeout): `--install-timeout 600`.
113+
* APK installation timeout in seconds.
114+
* Default: `120` seconds (2 minutes).
115+
* Applicable to both test APK and APK under test.
116+
* Example: `--install-timeout 20`
94117

95118
##### Example
96119

@@ -141,7 +164,7 @@ Composer works great in combination with [Swarmer][swarmer] — another tool we'
141164
Dependencies: you only need `docker` and `bash` installed on your machine.
142165

143166
```console
144-
bash ci/build.sh
167+
ci/build.sh
145168
```
146169

147170
## License

0 commit comments

Comments
 (0)