fastlane-plugin-saucectl 0.1.0.pre.beta.2 → 0.1.4.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +80 -0
- data/lib/fastlane/plugin/saucectl/actions/disabled_tests_action.rb +4 -0
- data/lib/fastlane/plugin/saucectl/actions/{install_toolkit_action.rb → install_saucectl_action.rb} +5 -1
- data/lib/fastlane/plugin/saucectl/actions/sauce_runner_action.rb +4 -0
- data/lib/fastlane/plugin/saucectl/strings/messages.yml +12 -0
- data/lib/fastlane/plugin/saucectl/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 024240ff63318f8b16a171d979f78e248056944b7d101fcc65fd624052109931
|
4
|
+
data.tar.gz: 8658779f3666c3763d3bee9653a1615948cfaa5d86a29ae467bec7bd312bf446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52a09bb69e87375bc95c2859926f7f67d4d95e46c7dab759273579c736148b21490ac098d9f3d88fc624d6be9a86e0126d313d54b1b6a36b5832787c9809323b
|
7
|
+
data.tar.gz: 0e227865084afc04b8b6677229db631bc9385a6550fe44f74450517b9ddfecd6787675b773bfd78ff90624d235bf28dc802634b2ca5667711231479f68983e86
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2021 Ian Hamilton <ian.ross.hamilton@gmail.com>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# fastlane-plugin-saucectl
|
2
|
+
|
3
|
+
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-saucectl)
|
4
|
+
[![codecov](https://codecov.io/gh/ianrhamilton/fastlane-plugin-rsaucectl/branch/main/graph/badge.svg?token=NSVhqgYFYv)](https://codecov.io/gh/ianrhamilton/fastlane-plugin-saucectl)
|
5
|
+
|
6
|
+
## Getting Started
|
7
|
+
|
8
|
+
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-saucectl`, add it to your project by running:
|
9
|
+
|
10
|
+
```bash
|
11
|
+
fastlane add_plugin saucectl
|
12
|
+
```
|
13
|
+
|
14
|
+
## About fastlane-plugin-saucectl
|
15
|
+
|
16
|
+
The purpose of this plugin is to simplify the set up, configuration, upload, and execution of espresso and xcuitests via the [Sauce Labs](https://saucelabs.com/) platform by utilizing fastlane which will enable you to test your iOS and and Android apps at scale using [Sauce Labs CLI](https://docs.saucelabs.com/dev/cli/saucectl/).
|
17
|
+
|
18
|
+
**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
|
+
|
20
|
+
Failure to do this will result in missing test classes and test cases from your test run.
|
21
|
+
|
22
|
+
**For a detailed introduction to each of the actions available within this plugin, please see the [documentation](https://ianrhamilton.github.io/fastlane-plugin-saucectl/#fastlane-plugin-saucectl)**.
|
23
|
+
|
24
|
+
| Available Actions | Description |
|
25
|
+
|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
26
|
+
| install_saucectl | Downloads the Sauce Labs saucectl cli binary for test execution |
|
27
|
+
| sauce_upload | Upload test artifacts to sauce labs storage |
|
28
|
+
| sauce_config | Create SauceLabs configuration file for test execution based on given parameters |
|
29
|
+
| sauce_runner | Execute automated tests on sauce labs platform via saucectl binary for specified configuration |
|
30
|
+
| delete_from_storage | Delete test artifacts from sauce labs storage by storage id or group id |
|
31
|
+
| sauce_apps | Returns the set of files by specific app id that have been uploaded to Sauce Storage by the requester |
|
32
|
+
| sauce_devices | Returns a list of Device IDs for all devices in the data center that are currently free for testing. |
|
33
|
+
| 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 |
|
34
|
+
|
35
|
+
An order of which you may utilize the above actions in your continuous integration platform could be:
|
36
|
+
1. Install the saucectl binary via `install_saucectl`
|
37
|
+
2. Upload your test artifacts to Sauce Labs storage (for example app apk, and test runner apk)
|
38
|
+
3. Create config.yml for given parameters via `sauce_config`
|
39
|
+
4. Execute test based on specified config via `sauce_runner`
|
40
|
+
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)
|
41
|
+
|
42
|
+
## Example
|
43
|
+
|
44
|
+
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`.
|
45
|
+
|
46
|
+
**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
|
47
|
+
|
48
|
+
## Run tests for this plugin
|
49
|
+
|
50
|
+
To run both the tests, and code style validation, run
|
51
|
+
|
52
|
+
```
|
53
|
+
rake
|
54
|
+
```
|
55
|
+
|
56
|
+
To automatically fix many of the styling issues, use
|
57
|
+
```
|
58
|
+
rubocop -a
|
59
|
+
```
|
60
|
+
|
61
|
+
## Issues and Feedback
|
62
|
+
|
63
|
+
For any other issues and feedback about this plugin, please submit it to this repository.
|
64
|
+
|
65
|
+
## Troubleshooting
|
66
|
+
|
67
|
+
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
|
68
|
+
|
69
|
+
## Using _fastlane_ Plugins
|
70
|
+
|
71
|
+
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
|
72
|
+
|
73
|
+
## About _fastlane_
|
74
|
+
|
75
|
+
_fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
|
76
|
+
|
77
|
+
## Buy me a coffee
|
78
|
+
If you're enjoying this plugin, feel free to **optionally** buy me a coffee :)
|
79
|
+
|
80
|
+
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/ianrhamilton)
|
@@ -32,6 +32,10 @@ module Fastlane
|
|
32
32
|
"Fetches any disabled ui test cases (for android searches for @Ignore tests, and for ios skipped tests within an xcode test plan). Will be used in future for generating pretty HTML reports"
|
33
33
|
end
|
34
34
|
|
35
|
+
def self.details
|
36
|
+
"Fetches any disabled ui test cases (for android searches for @Ignore tests, and for ios skipped tests within an xcode test plan). Will be used in future for generating pretty HTML reports"
|
37
|
+
end
|
38
|
+
|
35
39
|
def self.available_options
|
36
40
|
[
|
37
41
|
FastlaneCore::ConfigItem.new(key: :platform,
|
data/lib/fastlane/plugin/saucectl/actions/{install_toolkit_action.rb → install_saucectl_action.rb}
RENAMED
@@ -3,7 +3,7 @@ require_relative '../helper/installer'
|
|
3
3
|
|
4
4
|
module Fastlane
|
5
5
|
module Actions
|
6
|
-
class
|
6
|
+
class InstallSaucectlAction < Action
|
7
7
|
def self.run(param = '')
|
8
8
|
UI.message("Installing saucectl 🤖 🚀")
|
9
9
|
installer = Saucectl::Installer.new
|
@@ -14,6 +14,10 @@ module Fastlane
|
|
14
14
|
"Installs the Sauce Labs saucectl cli binary"
|
15
15
|
end
|
16
16
|
|
17
|
+
def self.details
|
18
|
+
"Installs the Sauce Labs saucectl cli binary"
|
19
|
+
end
|
20
|
+
|
17
21
|
def self.authors
|
18
22
|
["Ian Hamilton"]
|
19
23
|
end
|
@@ -13,6 +13,10 @@ module Fastlane
|
|
13
13
|
"Execute automated tests on sauce labs platform via saucectl binary for specified configuration"
|
14
14
|
end
|
15
15
|
|
16
|
+
def self.details
|
17
|
+
"Execute automated tests on sauce labs platform via saucectl binary for specified configuration"
|
18
|
+
end
|
19
|
+
|
16
20
|
def self.available_options
|
17
21
|
[
|
18
22
|
FastlaneCore::ConfigItem.new(key: :sauce_username,
|
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
platform_error: "No platform specified, set using: platform: 'android'"
|
3
|
+
app_path_error: "No App path given, set using: app_path: 'path/to/my/testApp.apk'"
|
4
|
+
file_error: "No file path given, set using: app_path: 'path/to/my/testApp.apk'"
|
5
|
+
app_name_error: "No App name given, set using: app_name: 'testApp.apk'"
|
6
|
+
test_runner_app_error: "No Test runner application given, set using: test_runner_app: 'testRunnerApp.apk'"
|
7
|
+
region_error: "$region is an invalid region. Supported regions are 'us' and 'eu'"
|
8
|
+
sauce_username_error: "No sauce labs username provided, set using: sauce_username: 'sauce user name', or consider setting your credentials as environment variables."
|
9
|
+
sauce_api_key_error: "No sauce labs access key provided, set using: sauce_access_key: '1234' or consider setting your credentials as environment variables."
|
10
|
+
supported_regions: ['us', 'eu']
|
11
|
+
accepted_file_types: ['.apk', '.aab', '.ipa', '.zip']
|
12
|
+
missing_file_name: "Please specify the name of the app that you wish to query on sauce storage"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-saucectl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Hamilton
|
@@ -170,10 +170,12 @@ executables: []
|
|
170
170
|
extensions: []
|
171
171
|
extra_rdoc_files: []
|
172
172
|
files:
|
173
|
+
- LICENSE
|
174
|
+
- README.md
|
173
175
|
- lib/fastlane/plugin/saucectl.rb
|
174
176
|
- lib/fastlane/plugin/saucectl/actions/delete_from_storage_action.rb
|
175
177
|
- lib/fastlane/plugin/saucectl/actions/disabled_tests_action.rb
|
176
|
-
- lib/fastlane/plugin/saucectl/actions/
|
178
|
+
- lib/fastlane/plugin/saucectl/actions/install_saucectl_action.rb
|
177
179
|
- lib/fastlane/plugin/saucectl/actions/sauce_apps_action.rb
|
178
180
|
- lib/fastlane/plugin/saucectl/actions/sauce_config_action.rb
|
179
181
|
- lib/fastlane/plugin/saucectl/actions/sauce_devices_action.rb
|
@@ -188,6 +190,7 @@ files:
|
|
188
190
|
- lib/fastlane/plugin/saucectl/helper/storage.rb
|
189
191
|
- lib/fastlane/plugin/saucectl/helper/suites.rb
|
190
192
|
- lib/fastlane/plugin/saucectl/helper/xctest.rb
|
193
|
+
- lib/fastlane/plugin/saucectl/strings/messages.yml
|
191
194
|
- lib/fastlane/plugin/saucectl/version.rb
|
192
195
|
homepage: https://github.com/ianrhamilton/fastlane-plugin-saucectl
|
193
196
|
licenses:
|