fastlane-plugin-android_testlab_script_swit 0.1.39 → 0.1.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb +4 -20
- data/lib/fastlane/plugin/android_testlab_script_swit/helper/android_testlab_script_swit_helper.rb +3 -2
- data/lib/fastlane/plugin/android_testlab_script_swit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f43cd025f76462e342f60dd4f7fdccb9a7ea7ec7ddf4a3c8a2144b3013d1cf8
|
4
|
+
data.tar.gz: 4ee43a961f63ad9ad8348ae99506942459654c03c3133e320c07b3043441dd19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b915749f9018750823238b0c143f2ce1b1684170a16614ba579170c2aa349458acc0e59cab7599084be4add92315c500b9ce78a13c666e5873ff6e9b88455e0
|
7
|
+
data.tar.gz: 455ab232f0626de3d45321a3f09519d0d39387dc6e768648ed0f45c81110be49ec786a8630dce0ef4962e1b6fbd9a709ccc148006bf77345f1e600a83615972f
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -24,7 +24,7 @@ module Fastlane
|
|
24
24
|
robo_script_option = params[:robo_script_path].nil? ? "" : "--robo-script #{params[:robo_script_path]} "
|
25
25
|
|
26
26
|
# Run Firebase Test Lab
|
27
|
-
|
27
|
+
Helper.run_tests("--type #{params[:type]} "\
|
28
28
|
"--app #{params[:app_apk]} "\
|
29
29
|
"#{"--test #{params[:app_test_apk]} " unless params[:app_test_apk].nil?}"\
|
30
30
|
"#{"--use-orchestrator " if params[:type] == "instrumentation" && params[:use_orchestrator]}"\
|
@@ -37,12 +37,10 @@ module Fastlane
|
|
37
37
|
"--format=json 1>#{Helper.if_need_dir(params[:console_log_file_name])}"
|
38
38
|
)
|
39
39
|
|
40
|
+
# wait_for_test_to_complete(test_results_url)
|
40
41
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
wait_for_test_to_complete(test_results_url)
|
45
|
-
|
42
|
+
# json = JSON.parse(File.read(params[:console_log_file_name]))
|
43
|
+
# UI.message("Test status: #{json}")
|
46
44
|
#
|
47
45
|
# # Fetch results
|
48
46
|
# download_dir = params[:download_dir]
|
@@ -59,20 +57,6 @@ module Fastlane
|
|
59
57
|
UI.message("Finish Action")
|
60
58
|
end
|
61
59
|
|
62
|
-
def wait_for_test_to_complete(url)
|
63
|
-
require 'open-uri'
|
64
|
-
|
65
|
-
loop do
|
66
|
-
html = open(url).read
|
67
|
-
|
68
|
-
if html.include?("Test is complete")
|
69
|
-
break
|
70
|
-
else
|
71
|
-
sleep(10) # wait for a few seconds before checking again.
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
60
|
# Short Detils
|
77
61
|
def self.description
|
78
62
|
"Android Firebase TestLab with Robo Script Test"
|
data/lib/fastlane/plugin/android_testlab_script_swit/helper/android_testlab_script_swit_helper.rb
CHANGED
@@ -32,9 +32,10 @@ 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(
|
35
|
+
def self.run_tests(arguments)
|
36
36
|
UI.message("Test running...")
|
37
|
-
|
37
|
+
# Action.sh("set +e; gcloud #{gcloud_components_channel unless gcloud_components_channel == "stable"} firebase test android run #{arguments}; set -e")
|
38
|
+
Action.sh("set +e; gcloud stable firebase test android run #{arguments}; set -e")
|
38
39
|
end
|
39
40
|
|
40
41
|
def self.copy_from_gcs(bucket_and_path, copy_to)
|