fastlane-plugin-try_adb_test 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 573bf11d732f991e7afc2e9aaaba199953e41a73f85aa53bf71b540e73781b80
|
4
|
+
data.tar.gz: 312e06b76427e6745467a9b7a793e97f8f14b64e68ccb968b78a1c8fff2ecfc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4d38648d5aa932fc5fafc43ce987e354f3c530f1b99df22c2e71152481fe709718f8c6d3d3abad1533679d9d3d35d20d04a798107fb02a85826bc89aad06bb3
|
7
|
+
data.tar.gz: d0c5f55f63ec0d77a4656f2837984b86b4f954a5267e434012c31c8b40db7c9092d2c6ff32ef2527fbe7d4ab8aac26cf0ea6b4a8eda2690ef9006f46b9944a78
|
data/README.md
CHANGED
@@ -2,10 +2,12 @@
|
|
2
2
|
|
3
3
|
[](https://rubygems.org/gems/fastlane-plugin-try_adb_test)
|
4
4
|
|
5
|
-
## About
|
5
|
+
## About try_adb_test
|
6
6
|
|
7
7
|
The easiest way to retry your Android Instrumented Tests 🚀
|
8
8
|
|
9
|
+
Under the hood `try_adb_test` uses the stable version of the marvelous [`gojuno composer`](https://github.com/gojuno/composer) and allows you to customize your retry strategy.
|
10
|
+
|
9
11
|
| Option | Description | Default |
|
10
12
|
| ------- |------------ | ------- |
|
11
13
|
| apk | Either relative or absolute path to application apk that needs to be tested | |
|
@@ -14,12 +16,13 @@ The easiest way to retry your Android Instrumented Tests 🚀
|
|
14
16
|
| try_count | Number of times to try to get your tests green | 1 |
|
15
17
|
| shard | Either true or false to enable/disable [test sharding](https://developer.android.com/training/testing/junit-runner.html#sharding-tests) which statically shards tests between available devices/emulators | true |
|
16
18
|
| output_directory | Either relative or absolute path to directory for output: reports, files from devices and so on | fastlane/output |
|
17
|
-
| instrumentation_arguments | Key-value pairs to pass to Instrumentation Runner | |
|
19
|
+
| instrumentation_arguments | Key-value pairs to pass to Instrumentation Runner | Empty |
|
18
20
|
| verbose | Either true or false to enable/disable verbose output for Composer | false |
|
19
|
-
| devices | Connected devices/emulators that will be used to run tests against. Example: "emulator-5554 emulator-5556" | |
|
20
|
-
| device_pattern | Connected devices/emulators that will be used to run tests against. Example: "emulator.+" | |
|
21
|
+
| devices | Connected devices/emulators that will be used to run tests against. Example: "emulator-5554 emulator-5556" | Empty, tests will run on all connected devices/emulators |
|
22
|
+
| device_pattern | Connected devices/emulators that will be used to run tests against. Example: "emulator.+" | Empty, tests will run on all connected devices/emulators |
|
23
|
+
| fail_if_no_tests | Either true or false to enable/disable error on empty test suite | true |
|
21
24
|
| install_timeout | Apk installation timeout in seconds. Applicable to both test Apk and Apk under test | 120 |
|
22
|
-
| extra_apks | Apks to be installed for utilities. What you would typically declare in gradle as androidTestUtil. Example: "path/to/apk/first.apk path/to/apk/second.apk" | |
|
25
|
+
| extra_apks | Apks to be installed for utilities. What you would typically declare in gradle as androidTestUtil. Example: "path/to/apk/first.apk path/to/apk/second.apk" | Empty |
|
23
26
|
|
24
27
|
## Requirements
|
25
28
|
|
@@ -45,6 +45,7 @@ module Fastlane
|
|
45
45
|
" --instrumentation-arguments #{instrumentation_arguments}" \
|
46
46
|
" --verbose-output #{params[:verbose]}" \
|
47
47
|
" --install-timeout #{params[:install_timeout]}" \
|
48
|
+
" --fail-if-no-tests #{params[:fail_if_no_tests]}" \
|
48
49
|
" --shard #{params[:shard]}" \
|
49
50
|
" #{test_runner}" \
|
50
51
|
" #{devices}" \
|
@@ -153,6 +154,12 @@ module Fastlane
|
|
153
154
|
optional: true,
|
154
155
|
is_string: false,
|
155
156
|
type: Boolean),
|
157
|
+
FastlaneCore::ConfigItem.new(key: :fail_if_no_tests,
|
158
|
+
description: "Either true or false to enable/disable error on empty test suite",
|
159
|
+
default_value: true,
|
160
|
+
optional: true,
|
161
|
+
is_string: false,
|
162
|
+
type: Boolean),
|
156
163
|
FastlaneCore::ConfigItem.new(key: :extra_apks,
|
157
164
|
description: "Apks to be installed for utilities. What you would typically declare in gradle as androidTestUtil",
|
158
165
|
default_value: '',
|