fastlane-plugin-run_tests_firebase_testlab 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eeb6ae22d6ae6402275f308566272639863b4b42
|
|
4
|
+
data.tar.gz: 1eeee6eb8e2a7365ebee6e4b001243e8ad5fc940
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1098ccea771bad4de3e5d60f172d356f7fedff3620c0e2dea56935a8aa76c3618204360bab39b1945ef6b7bde35224335b456ffed035e6de8169bdc2c020ae2d
|
|
7
|
+
data.tar.gz: 27082fb8019617ca2c3ba81105294e275ec289f309f88f64f89a269efb96e28415ae7a263df5817d23687273a6f59058d6743a0dc5c4667bbe6077b9b9895c10
|
data/README.md
CHANGED
|
@@ -154,7 +154,7 @@ run_tests_firebase_testlab(
|
|
|
154
154
|
</tr>
|
|
155
155
|
|
|
156
156
|
<tr>
|
|
157
|
-
<td>
|
|
157
|
+
<td>download_results_from_firebase</td>
|
|
158
158
|
<td>A flag to control if the firebase files should be downloaded from the bucket or not</td>
|
|
159
159
|
<td>Yes</td>
|
|
160
160
|
<td>true</td>
|
data/lib/fastlane/plugin/run_tests_firebase_testlab/actions/run_tests_firebase_testlab_action.rb
CHANGED
|
@@ -32,33 +32,36 @@ module Fastlane
|
|
|
32
32
|
UI.message("Running instrumentation tests in Firebase Test Lab...")
|
|
33
33
|
remove_pipe_if_exists
|
|
34
34
|
Action.sh("mkfifo #{PIPE}")
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
params[:bucket_url]
|
|
51
|
-
|
|
52
|
-
|
|
35
|
+
begin
|
|
36
|
+
Action.sh("tee #{@test_console_output_file} < #{PIPE} & "\
|
|
37
|
+
"#{Commands.run_tests} "\
|
|
38
|
+
"--type instrumentation "\
|
|
39
|
+
"--app #{params[:app_apk]} "\
|
|
40
|
+
"--test #{params[:android_test_apk]} "\
|
|
41
|
+
"#{create_devices_params(params)}"\
|
|
42
|
+
"--timeout #{params[:timeout]} "\
|
|
43
|
+
"#{params[:extra_options]} > #{PIPE} 2>&1")
|
|
44
|
+
ensure
|
|
45
|
+
remove_pipe_if_exists
|
|
46
|
+
|
|
47
|
+
UI.message("Create firebase directory (if not exists) to store test results.")
|
|
48
|
+
FileUtils.mkdir_p(params[:output_dir])
|
|
49
|
+
|
|
50
|
+
if params[:bucket_url].nil?
|
|
51
|
+
UI.message("Parse firebase bucket url.")
|
|
52
|
+
params[:bucket_url] = scrape_bucket_url
|
|
53
|
+
UI.message("bucket: #{params[:bucket_url]}")
|
|
54
|
+
end
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
if params[:download_results_from_firebase]
|
|
57
|
+
UI.message("Downloading instrumentation test results from Firebase Test Lab...")
|
|
58
|
+
Action.sh("#{Commands.download_results} #{params[:bucket_url]} #{params[:output_dir]}")
|
|
59
|
+
end
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
if params[:delete_firebase_files]
|
|
62
|
+
UI.message("Deleting files from firebase storage...")
|
|
63
|
+
Action.sh("#{Commands.delete_resuls} #{params[:bucket_url]}")
|
|
64
|
+
end
|
|
62
65
|
end
|
|
63
66
|
end
|
|
64
67
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-run_tests_firebase_testlab
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bruno Correia
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-03-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|