fastlane-plugin-firebase_test_lab_android 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -3
- data/lib/fastlane/plugin/firebase_test_lab_android/actions/firebase_test_lab_android_action.rb +19 -3
- data/lib/fastlane/plugin/firebase_test_lab_android/helper/Helper.rb +2 -2
- data/lib/fastlane/plugin/firebase_test_lab_android/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 764cf836d00f0ea4feb9ef40bf148f03b23bb4a89549238855a070d77673b97f
|
4
|
+
data.tar.gz: c8fadce469537bf2d1176fab286371157ccc12649cdbe385b6ba20deb53438a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de2f745739ded8ebc942a85b5116101d3f9dc9313f8eff7b1e39b0f02668aaea5fcd894d2bc7c755e177816b99784cef694889a9960a4e59e5dfc7f4d0da2b19
|
7
|
+
data.tar.gz: c7aca202c83b7fd992e3b8df1167cc7fbd47143adb29f2cdb01d5fdb5ff1e06838867a8b32f1458ea311bca15cf466ecc7b22bd25f0fb9b0ef922aff0f6f2944
|
data/README.md
CHANGED
@@ -60,7 +60,7 @@ fastlane add_plugin firebase_test_lab_android
|
|
60
60
|
Using [gcloud tool](https://cloud.google.com/sdk/gcloud/), you can run.
|
61
61
|
|
62
62
|
```
|
63
|
-
gcloud
|
63
|
+
gcloud firebase test android models list
|
64
64
|
```
|
65
65
|
|
66
66
|
to get a list of supported devices and their identifiers.
|
@@ -87,6 +87,7 @@ lane :test do
|
|
87
87
|
firebase_test_lab_android(
|
88
88
|
project_id: "cats-firebase", # Your Firebase project name.
|
89
89
|
gcloud_service_key_file: "fastlane/client-secret.json", # File path containing the gcloud auth key.
|
90
|
+
# gcloud_components_channel: "beta", # If you use gcloud component channel option (alpha/beta).
|
90
91
|
type: "robo", # Optional: Test type (robo/instrumentation).
|
91
92
|
devices: [ # Devices
|
92
93
|
{
|
@@ -103,7 +104,7 @@ lane :test do
|
|
103
104
|
app_apk: "app-debug.apk", # The path for your android app apk.
|
104
105
|
# app_test_apk: "app-test.apk", # The path for your android instrumentation test apk.
|
105
106
|
# use_orchestrator: false, # If you use orchestrator when set instrumentation test.
|
106
|
-
console_log_file_name: "fastlane/console_output.log",
|
107
|
+
console_log_file_name: "fastlane/console_output.log",
|
107
108
|
timeout: "3m",
|
108
109
|
firebase_test_lab_results_bucket: "firebase_cats_test_bucket", # If you want to naming bucket of GCS
|
109
110
|
# firebase_test_lab_results_dir: "firebase_cats_test_dir", # If you want to naming results of GCS. (Maybe don't need it.)
|
@@ -114,7 +115,10 @@ lane :test do
|
|
114
115
|
github_repository: "************", # Repository name.
|
115
116
|
github_pr_number: pr_number, # If you using run on CI that need pull request number for auto comment.
|
116
117
|
github_api_token: ENV["GITHUB_API_TOKEN"], # https://github.com/settings/tokens
|
117
|
-
download_dir: ".results"
|
118
|
+
download_dir: ".results", # If you want to download to the results of Firebase test lab.
|
119
|
+
|
120
|
+
# If you want to ignore some social sign-in buttons.
|
121
|
+
extra_options: "--robo-directives ignore:image_button_sign_in_twitter=,ignore:image_button_sign_in_instagram="
|
118
122
|
)
|
119
123
|
end
|
120
124
|
```
|
data/lib/fastlane/plugin/firebase_test_lab_android/actions/firebase_test_lab_android_action.rb
CHANGED
@@ -17,7 +17,7 @@ module Fastlane
|
|
17
17
|
# Activate service account
|
18
18
|
Helper.authenticate(params[:gcloud_service_key_file])
|
19
19
|
# Run Firebase Test Lab
|
20
|
-
Helper.run_tests("--type #{params[:type]} "\
|
20
|
+
Helper.run_tests(params[:gcloud_components_channel], "--type #{params[:type]} "\
|
21
21
|
"--app #{params[:app_apk]} "\
|
22
22
|
"#{"--test #{params[:app_test_apk]} " unless params[:app_test_apk].nil?}"\
|
23
23
|
"#{"--use-orchestrator " if params[:type] == "instrumentation" && params[:use_orchestrator]}"\
|
@@ -113,7 +113,12 @@ module Fastlane
|
|
113
113
|
description: "Test type. Default: robo (robo/instrumentation)",
|
114
114
|
is_string: true,
|
115
115
|
optional: true,
|
116
|
-
default_value: "robo"
|
116
|
+
default_value: "robo",
|
117
|
+
verify_block: proc do |value|
|
118
|
+
if value != "robo" && value != "instrumentation"
|
119
|
+
UI.user_error!("Unknown test type.")
|
120
|
+
end
|
121
|
+
end),
|
117
122
|
FastlaneCore::ConfigItem.new(key: :devices,
|
118
123
|
description: "Devices to test the app on",
|
119
124
|
type: Array,
|
@@ -157,10 +162,21 @@ module Fastlane
|
|
157
162
|
default_value: nil),
|
158
163
|
FastlaneCore::ConfigItem.new(key: :use_orchestrator,
|
159
164
|
env_name: "USE_ORCHESTRATOR",
|
160
|
-
description: "If you use orchestrator when set instrumentation test
|
165
|
+
description: "If you use orchestrator when set instrumentation test. Default: false",
|
161
166
|
type: Boolean,
|
162
167
|
optional: true,
|
163
168
|
default_value: false),
|
169
|
+
FastlaneCore::ConfigItem.new(key: :gcloud_components_channel,
|
170
|
+
env_name: "gcloud_components_channel",
|
171
|
+
description: "If you use beta or alpha components. Default stable (alpha/beta)",
|
172
|
+
is_string: true,
|
173
|
+
optional: true,
|
174
|
+
default_value: "stable",
|
175
|
+
verify_block: proc do |value|
|
176
|
+
if value != "stable" && value != "alpha" && value != "beta"
|
177
|
+
UI.user_error!("Unknown gcloud component channel.")
|
178
|
+
end
|
179
|
+
end),
|
164
180
|
FastlaneCore::ConfigItem.new(key: :console_log_file_name,
|
165
181
|
env_name: "CONSOLE_LOG_FILE_NAME",
|
166
182
|
description: "The filename to save the output results. Default: ./console_output.log",
|
@@ -32,9 +32,9 @@ module Fastlane
|
|
32
32
|
Action.sh("gcloud auth activate-service-account --key-file #{gcloud_key_file}")
|
33
33
|
end
|
34
34
|
|
35
|
-
def self.run_tests(arguments)
|
35
|
+
def self.run_tests(gcloud_components_channel, arguments)
|
36
36
|
UI.message("Test running...")
|
37
|
-
Action.sh("set +e; gcloud firebase test android run #{arguments}; set -e")
|
37
|
+
Action.sh("set +e; gcloud #{gcloud_components_channel unless gcloud_components_channel == "stable"} firebase test android run #{arguments}; set -e")
|
38
38
|
end
|
39
39
|
|
40
40
|
def self.copy_from_gcs(bucket_and_path, copy_to)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-firebase_test_lab_android
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wasabeef
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|