fastlane-plugin-run_tests_firebase_testlab 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: c6a2f08d5395b10f14f913b802d1f34bdd0efdc3
4
- data.tar.gz: ee7be8d83547a5dc1c3133d8009023c651095363
3
+ metadata.gz: eeb6ae22d6ae6402275f308566272639863b4b42
4
+ data.tar.gz: 1eeee6eb8e2a7365ebee6e4b001243e8ad5fc940
5
5
  SHA512:
6
- metadata.gz: 58cc561b4d8c90f8c017767d5fd8d6745f7ca8566ea389222fb73a7044d0076671afed0a7fe7580f34bfa4e58fcac1fed9f0be6fa1d843154fe5e1a686d14e87
7
- data.tar.gz: b100b3dd863eea12dc3df707faeb177ee3c413f11033068847a237678aa2662ce3319de51f77dabef12ad216bbb81e4bd7e93dc749e1b6143aaae3c1e8fdc53b
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>should_download_from_firebase</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>
@@ -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
- Action.sh("tee #{@test_console_output_file} < #{PIPE} & "\
36
- "#{Commands.run_tests} "\
37
- "--type instrumentation "\
38
- "--app #{params[:app_apk]} "\
39
- "--test #{params[:android_test_apk]} "\
40
- "#{create_devices_params(params)}"\
41
- "--timeout #{params[:timeout]} "\
42
- "#{params[:extra_options]} > #{PIPE} 2>&1")
43
- remove_pipe_if_exists
44
-
45
- UI.message("Create firebase directory (if not exists) to store test results.")
46
- FileUtils.mkdir_p(params[:output_dir])
47
-
48
- if params[:bucket_url].nil?
49
- UI.message("Parse firebase bucket url.")
50
- params[:bucket_url] = scrape_bucket_url
51
- UI.message("bucket: #{params[:bucket_url]}")
52
- end
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
- if params[:download_results_from_firebase]
55
- UI.message("Downloading instrumentation test results from Firebase Test Lab...")
56
- Action.sh("#{Commands.download_results} #{params[:bucket_url]} #{params[:output_dir]}")
57
- end
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
- if params[:delete_firebase_files]
60
- UI.message("Deleting files from firebase storage...")
61
- Action.sh("#{Commands.delete_resuls} #{params[:bucket_url]}")
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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module RunTestsFirebaseTestlab
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
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.0
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-01-11 00:00:00.000000000 Z
11
+ date: 2019-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry