fastlane-plugin-saucectl 0.1.0.pre → 0.1.3.pre

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: 6bdbb9912f67b89ebe6130337c9c0610909efcb95e21716f45fb1559268afb82
4
- data.tar.gz: 747c9ce9d6cbf1cbceed7b9d4167a02d2174bd23ec29a8736b1730c4cdc1ae53
3
+ metadata.gz: cfe7383a6621d0f63d8b47202f757eff6873b3eb2fdd9b2482de329fe4aa81f1
4
+ data.tar.gz: faa221723b72ad9b14583c0bbcef9b0a547cdf8158f9947b8be4c420b96a249f
5
5
  SHA512:
6
- metadata.gz: 9a6ed65ee27a67ca9630e208e2c9f564daf7d9bb6fb81339eafbd0a20f24959cdc4693e8bd938c0241d5003ff612e03de4ec1aa109dc39b2ab17b45494ca6c67
7
- data.tar.gz: 83cbd56a6e355ae11677d7b92e1bdc6ec37e17882a3ddb672ad98486e7ea53624ffceca8d86301e01009e200d9a46956f2ca2f36e3ca18f9fb4906fc2b875c5b
6
+ metadata.gz: 385e2b1b519e2c90e2b9fd70dc25912040e5ac9c913dc0992111d17266beab22647dc6808532dc191b85f10ccdb3f877b400880a62a05d08a70ff68c77816257
7
+ data.tar.gz: 182fb2ec4023e3d6a2dac3623a0b34ebf19cec8ba9e40d55867ceb29063439fcbb215033dcd1a04f6dafe16fe9b236a31943672e340b06151bd8c558d89acb34
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.0.pre
4
+ version: 0.1.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hamilton
@@ -169,26 +169,7 @@ email: ian.ross.hamilton@gmail.com
169
169
  executables: []
170
170
  extensions: []
171
171
  extra_rdoc_files: []
172
- files:
173
- - lib/fastlane/plugin/saucectl.rb
174
- - lib/fastlane/plugin/saucectl/actions/delete_from_storage_action.rb
175
- - lib/fastlane/plugin/saucectl/actions/disabled_tests_action.rb
176
- - lib/fastlane/plugin/saucectl/actions/install_toolkit_action.rb
177
- - lib/fastlane/plugin/saucectl/actions/sauce_apps_action.rb
178
- - lib/fastlane/plugin/saucectl/actions/sauce_config_action.rb
179
- - lib/fastlane/plugin/saucectl/actions/sauce_devices_action.rb
180
- - lib/fastlane/plugin/saucectl/actions/sauce_runner_action.rb
181
- - lib/fastlane/plugin/saucectl/actions/sauce_upload_action.rb
182
- - lib/fastlane/plugin/saucectl/helper/api.rb
183
- - lib/fastlane/plugin/saucectl/helper/config.rb
184
- - lib/fastlane/plugin/saucectl/helper/espresso.rb
185
- - lib/fastlane/plugin/saucectl/helper/file_utils.rb
186
- - lib/fastlane/plugin/saucectl/helper/installer.rb
187
- - lib/fastlane/plugin/saucectl/helper/runner.rb
188
- - lib/fastlane/plugin/saucectl/helper/storage.rb
189
- - lib/fastlane/plugin/saucectl/helper/suites.rb
190
- - lib/fastlane/plugin/saucectl/helper/xctest.rb
191
- - lib/fastlane/plugin/saucectl/version.rb
172
+ files: []
192
173
  homepage: https://github.com/ianrhamilton/fastlane-plugin-saucectl
193
174
  licenses:
194
175
  - MIT
@@ -1,96 +0,0 @@
1
- require 'fastlane/action'
2
- require 'json'
3
- require 'yaml'
4
- require_relative '../helper/api'
5
- require_relative '../helper/storage'
6
-
7
- module Fastlane
8
- module Actions
9
- class DeleteFromStorageAction < Action
10
- @messages = YAML.load_file("#{__dir__}/../strings/messages.yml")
11
-
12
- def self.run(params)
13
- if params[:group_id].nil?
14
- Fastlane::Saucectl::Storage.new(params).delete_app_with_file_id
15
- else
16
- Fastlane::Saucectl::Storage.new(params).delete_all_apps_for_group_id
17
- end
18
- end
19
-
20
- def self.description
21
- "Delete test artifacts from sauce labs storage"
22
- end
23
-
24
- def self.details
25
- "Delete test artifacts from sauce labs storage by storage id or group id"
26
- end
27
-
28
- def self.available_options
29
- [
30
- FastlaneCore::ConfigItem.new(key: :region,
31
- description: "Data Center region (us or eu), set using: region: 'eu'",
32
- optional: false,
33
- is_string: true,
34
- verify_block: proc do |value|
35
- UI.user_error!(@messages['region_error'].gsub!('$region', value)) if value.empty? || !@messages['supported_regions'].include?(value)
36
- end),
37
- FastlaneCore::ConfigItem.new(key: :sauce_username,
38
- env_name: "SAUCE_USERNAME",
39
- description: "Your sauce labs username in order to authenticate delete file from app storage",
40
- default_value: Actions.lane_context[SharedValues::SAUCE_USERNAME],
41
- optional: false,
42
- is_string: true,
43
- verify_block: proc do |value|
44
- UI.user_error!(@messages['sauce_username_error']) if value.empty?
45
- end),
46
- FastlaneCore::ConfigItem.new(key: :sauce_access_key,
47
- env_name: "SAUCE_ACCESS_KEY",
48
- description: "Your sauce labs access key in order to authenticate delete file from app storage",
49
- default_value: Actions.lane_context[SharedValues::SAUCE_ACCESS_KEY],
50
- optional: false,
51
- is_string: true,
52
- verify_block: proc do |value|
53
- UI.user_error!(@messages['sauce_api_key_error']) if value.empty?
54
- end),
55
- FastlaneCore::ConfigItem.new(key: :app_id,
56
- description: "The application id from sauce labs storage",
57
- optional: true,
58
- is_string: true),
59
- FastlaneCore::ConfigItem.new(key: :group_id,
60
- description: "The group id for sauce labs storage",
61
- optional: true,
62
- is_string: true)
63
- ]
64
- end
65
-
66
- def self.authors
67
- ["Ian Hamilton"]
68
- end
69
-
70
- def self.category
71
- :testing
72
- end
73
-
74
- def self.is_supported?(platform)
75
- [:ios, :android].include?(platform)
76
- end
77
-
78
- def self.example_code
79
- [
80
- "delete_from_storage(
81
- region: 'eu',
82
- sauce_username: 'sauce username',
83
- sauce_access_key: 'sauce api name',
84
- app_id: '1234-1234-1234-1234'
85
- )",
86
- "delete_from_storage(
87
- region: 'eu',
88
- sauce_username: 'sauce username',
89
- sauce_access_key: 'sauce api name',
90
- group_id: '123456789'
91
- )"
92
- ]
93
- end
94
- end
95
- end
96
- end
@@ -1,86 +0,0 @@
1
- require 'fastlane/action'
2
- require 'json'
3
- require 'yaml'
4
- require_relative '../helper/espresso'
5
- require_relative '../helper/xctest'
6
-
7
- module Fastlane
8
- module Actions
9
- class DisabledTestsAction < Action
10
- @messages = YAML.load_file("#{__dir__}/../strings/messages.yml")
11
-
12
- def self.run(params)
13
- verify_config(params)
14
- if params[:platform].eql?('android')
15
- params[:path_to_tests] ? params[:path_to_tests] : params[:path_to_tests] = "app/src/androidTest"
16
- Fastlane::Saucectl::Espresso.new(params).fetch_disabled_tests(params[:path_to_tests])
17
- else
18
- Fastlane::Saucectl::XCTest.new(params).fetch_disabled_tests
19
- end
20
- end
21
-
22
- def self.verify_config(params)
23
- if params[:platform].eql?('ios') && params[:test_plan].nil?
24
- UI.user_error!('Cannot get skipped tests for an ios project without a known test_plan')
25
- end
26
- if params[:platform].eql?('android') && !params[:test_plan].nil?
27
- UI.user_error!('test_plan option is reserved for ios projects only')
28
- end
29
- end
30
-
31
- def self.description
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
- end
34
-
35
- def self.available_options
36
- [
37
- FastlaneCore::ConfigItem.new(key: :platform,
38
- description: "application under test platform (ios or android)",
39
- optional: false,
40
- is_string: true,
41
- verify_block: proc do |value|
42
- UI.user_error!(@messages['platform_error']) if value.to_s.empty?
43
- end),
44
- FastlaneCore::ConfigItem.new(key: :path_to_tests,
45
- description: "Android only, path to espresso tests. Default to app/src/androidTest",
46
- optional: true,
47
- is_string: true),
48
- FastlaneCore::ConfigItem.new(key: :test_plan,
49
- description: "Name of xcode test plan",
50
- optional: true,
51
- is_string: true),
52
- FastlaneCore::ConfigItem.new(key: :test_target,
53
- description: "Name of xcode test target",
54
- optional: true,
55
- is_string: true)
56
- ]
57
- end
58
-
59
- def self.authors
60
- ["Ian Hamilton"]
61
- end
62
-
63
- def self.category
64
- :testing
65
- end
66
-
67
- def self.is_supported?(platform)
68
- [:ios, :android].include?(platform)
69
- end
70
-
71
- def self.example_code
72
- [
73
- "disabled_tests({ platform: 'android',
74
- path_to_tests: 'my-demo-app-android/app/src/androidTest'
75
- })",
76
- "disabled_tests({ platform: 'ios',
77
- test_plan: 'UITests'
78
- })",
79
- "disabled_tests({ platform: 'ios',
80
- test_plan: 'UITests'
81
- })"
82
- ]
83
- end
84
- end
85
- end
86
- end
@@ -1,30 +0,0 @@
1
- require 'fastlane/action'
2
- require_relative '../helper/installer'
3
-
4
- module Fastlane
5
- module Actions
6
- class InstallToolkitAction < Action
7
- def self.run(param = '')
8
- UI.message("Installing saucectl 🤖 🚀")
9
- installer = Saucectl::Installer.new
10
- installer.install
11
- end
12
-
13
- def self.description
14
- "Installs the Sauce Labs saucectl cli binary"
15
- end
16
-
17
- def self.authors
18
- ["Ian Hamilton"]
19
- end
20
-
21
- def self.category
22
- :testing
23
- end
24
-
25
- def self.is_supported?(platform)
26
- [:ios, :android].include?(platform)
27
- end
28
- end
29
- end
30
- end
@@ -1,96 +0,0 @@
1
- require 'fastlane/action'
2
- require 'json'
3
- require 'yaml'
4
- require_relative '../helper/api'
5
-
6
- module Fastlane
7
- module Actions
8
- class SauceAppsAction < Action
9
- @messages = YAML.load_file("#{__dir__}/../strings/messages.yml")
10
- def self.run(params)
11
- Fastlane::Saucectl::Api.new(params).retrieve_all_apps
12
- end
13
-
14
- def self.description
15
- "Returns the set of files by specific app id that have been uploaded to Sauce Storage by the requester"
16
- end
17
-
18
- def self.details
19
- "Returns the set of files by specific app id that have been uploaded to Sauce Storage by the requester"
20
- end
21
-
22
- def self.available_options
23
- [
24
- FastlaneCore::ConfigItem.new(key: :platform,
25
- description: "application under test platform (ios or android)",
26
- optional: false,
27
- type: String,
28
- verify_block: proc do |value|
29
- UI.user_error!(@messages['platform_error']) if value.to_s.empty?
30
- end),
31
- FastlaneCore::ConfigItem.new(key: :query,
32
- description: "Any search term (such as build number or file name) by which you want to filter results",
33
- optional: false,
34
- type: String,
35
- verify_block: proc do |value|
36
- UI.user_error!(@messages['missing_file_name']) if value.to_s.empty?
37
- end),
38
- FastlaneCore::ConfigItem.new(key: :region,
39
- description: "Data Center region (us or eu), set using: region: 'eu'",
40
- optional: false,
41
- type: String,
42
- verify_block: proc do |value|
43
- UI.user_error!(@messages['region_error'].gsub!('$region', value)) unless @messages['supported_regions'].include?(value)
44
- end),
45
- FastlaneCore::ConfigItem.new(key: :sauce_username,
46
- env_name: "SAUCE_USERNAME",
47
- description: "Your sauce labs username in order to authenticate upload requests",
48
- default_value: Actions.lane_context[SharedValues::SAUCE_USERNAME],
49
- optional: false,
50
- type: String,
51
- verify_block: proc do |value|
52
- UI.user_error!(@messages['sauce_username_error']) unless value && !value.empty?
53
- end),
54
- FastlaneCore::ConfigItem.new(key: :sauce_access_key,
55
- env_name: "SAUCE_ACCESS_KEY",
56
- description: "Your sauce labs access key in order to authenticate upload requests",
57
- default_value: Actions.lane_context[SharedValues::SAUCE_ACCESS_KEY],
58
- optional: false,
59
- type: String,
60
- verify_block: proc do |value|
61
- UI.user_error!(@messages['sauce_api_key_error']) unless value && !value.empty?
62
- end)
63
- ]
64
- end
65
-
66
- def self.authors
67
- ["Ian Hamilton"]
68
- end
69
-
70
- def self.category
71
- :testing
72
- end
73
-
74
- def self.is_supported?(platform)
75
- [:ios, :android].include?(platform)
76
- end
77
-
78
- def self.example_code
79
- [
80
- "sauce_apps({platform: 'android',
81
- query: 'test.apk',
82
- region: 'eu',
83
- sauce_username: 'foo',
84
- sauce_access_key: 'bar123',
85
- })",
86
- "sauce_apps({platform: 'ios',
87
- query: 'test.app',
88
- region: 'eu',
89
- sauce_username: 'foo',
90
- sauce_access_key: 'bar123',
91
- })"
92
- ]
93
- end
94
- end
95
- end
96
- end