fastlane-plugin-saucectl 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ab968db699553cb2d744fe26a66dcd3e02b56e796935092b408d04ec2b5566b
4
- data.tar.gz: c5c3cbf2f72e159be64c0a47f025e11136c24285260488a12699322f88892caf
3
+ metadata.gz: b60d47d2798bb4bad74799e37917cc95e49efd9e8dbcc7c79df8e038307170b8
4
+ data.tar.gz: abc1f1d25dcc764c1eeeda22e3b3ef35ef3dea02e4b7c7606e32aab6daae06b0
5
5
  SHA512:
6
- metadata.gz: c26a558fa620c0c8f6cc20f9739b6ad7e8dc5382b1a82b88a2439b10f9621fae7d45a92b54c085c2d19a2b249f2d75155ef96d67d0051ef223b4d36cdffa3497
7
- data.tar.gz: cc8dfb29b8d3576dffba855245a140e43a3809ea337c0ddf5c8a1d14844b5f31f9a89d254c159127e70647c5f6593a1659f4d9a5d2724c6bde2f8cb2562de559
6
+ metadata.gz: a534469f042c3088a6cfbb424ab0bf5b2a50e228d3e40f1861d55ecfb8b1b787b093241f1db263bd7b4e74b450582c508d7e9ecf47f3c0da81db0247398b1647
7
+ data.tar.gz: a684548ebab6e4834513d029b85c76bdeac6ba9212ec7b97c542959160ba72de5d59b20dc6433cd35344195fe52e10dd859ae950995d72f9a43f41a08726ceba
data/README.md CHANGED
@@ -16,7 +16,7 @@ fastlane add_plugin saucectl
16
16
 
17
17
  The purpose of this plugin is to simplify the set up, configuration, upload, and execution of espresso and XCUITest on the Sauce Labs platform by utilizing fastlane which will enable you to test your iOS and Android apps at scale.
18
18
 
19
- **IMPORTANT:** in order for you to use this plugin to execute UI tests, your test class names must proceed with `Spec`, `Specs`, `Tests`, or `Test`, for example `ExampleSpec`, `ExampleSpecs`, `ExampleTest`, `ExampleTests`. Your test case names must also begin with test, for example `testIDoSomething`, `testIDoSomethingElse`. This is so that the the plugin can search for test classes and their included test cases.
19
+ **IMPORTANT:** To use this plugin to execute UI tests on Sauce Labs, your test class names must proceed with `Spec`, `Specs`, `Tests`, or `Test`, for example `ExampleSpec`, `ExampleSpecs`, `ExampleTest`, or `ExampleTests`. Your test case names must also begin with `test`, for example `testIDoSomething`, `testIDoSomethingElse`. This is so that the the plugin can search for test classes and their included test cases.
20
20
 
21
21
  Failure to do this will result in missing test classes and test cases from your test run.
22
22
 
@@ -33,13 +33,6 @@ Failure to do this will result in missing test classes and test cases from your
33
33
  | `sauce_devices` | Returns a list of Device IDs for all devices in the data center that are currently free for testing. |
34
34
  | `disabled_tests` | Fetches any disabled ui test cases (for android searches for @Ignore tests, and for ios skipped tests within an xcode test plan). Plan is to use this in the future for generating pretty HTML reports |
35
35
 
36
- An order of which you may utilize the above actions in your continuous integration platform could be:
37
- 1. Install the saucectl binary via `install_saucectl`
38
- 2. Upload your test artifacts to Sauce Labs storage (for example app apk, and test runner apk)
39
- 3. Create config.yml for given parameters via `sauce_config`
40
- 4. Execute test based on specified config via `sauce_runner`
41
- 5. Delete test artifacts via `delete_from_storage` so that your storage does not fill up (if you're executing tests on every PR, for example)
42
-
43
36
  ## Example
44
37
 
45
38
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
@@ -178,7 +178,12 @@ module Fastlane
178
178
  description: "Sets the maximum number of suites to execute at the same time. If the test defines more suites than the max, excess suites are queued and run in order as each suite completes",
179
179
  optional: true,
180
180
  type: Integer,
181
- default_value: 1)
181
+ default_value: 1),
182
+ FastlaneCore::ConfigItem.new(key: :timeout,
183
+ description: "Instructs how long (in ms, s, m, or h) saucectl should wait for each suite to complete. You can override this setting for individual suites using the timeout setting within the suites object. If not set, the default value is 0 (unlimited)",
184
+ optional: true,
185
+ type: String,
186
+ default_value: '0')
182
187
  ]
183
188
  end
184
189
 
@@ -24,10 +24,13 @@ module Fastlane
24
24
  {
25
25
  'apiVersion' => 'v1alpha',
26
26
  'kind' => @config[:kind],
27
- 'retries' => @config[:retries],
27
+ 'defaults' => {
28
+ 'timeout' => @config[:timeout],
29
+ },
28
30
  'sauce' => {
29
31
  'region' => set_region.to_s,
30
- 'concurrency' => @config[:max_concurrency_size]
32
+ 'concurrency' => @config[:max_concurrency_size],
33
+ 'retries' => @config[:retries]
31
34
  },
32
35
  (@config[:kind]).to_s => set_apps,
33
36
  'artifacts' => {
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Saucectl
3
- VERSION = '0.1.3'.freeze
3
+ VERSION = '0.1.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-saucectl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hamilton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2022-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler