scan 0.5.0 → 0.5.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: ff1ef1423d38f2a0573c6659631bfb3b9678917c
4
- data.tar.gz: c668d810e46bce5d2c32aec61275b03a37fadc7f
3
+ metadata.gz: 94178c2aa910d15be0704ae7fe9ce73aeb5a4bfe
4
+ data.tar.gz: 923dadf5c7e12b39cf3f659d0a44021bcb166c87
5
5
  SHA512:
6
- metadata.gz: 3f5ab80168b063ef519a54281ed666efb529970265f2381e9922524d8cf8593beaa2c0abebfc281aee17054ea2121051b8e12139bbe0b9f4299347a15c467776
7
- data.tar.gz: 3644db9fbf8545368c9eb41ba07907db6de6faa10331abb1528eae034dad45a714f9eaa092fa798aaac6679ff27d9aa37ef6e79b280e6e41df88dc0c0bf083bf
6
+ metadata.gz: 9fd6f4c7a540e60ed9b2197e08ba1366101029958912d97a2d81d30fb4f6c40b503167e34a32106259a13c644372dabffd0b7629be6fba342de6f4fb59849d3d
7
+ data.tar.gz: e57928817765f495f16963aaaad21a70a1eb0c1e674edf8ab5b8aef89dbf7bd408ccdd3d682de7c0c72b2320f50c667181b98af5b13f92a906cd3a7d0be93400
data/README.md CHANGED
@@ -55,6 +55,8 @@ Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.c
55
55
 
56
56
  `scan` makes it super easy to run tests of your iOS and Mac app. It does all the heavy lifting for you to run your tests... the easy way.
57
57
 
58
+ ![https://pbs.twimg.com/media/CURcEpuWoAArE3d.png:large](https://pbs.twimg.com/media/CURcEpuWoAArE3d.png:large)
59
+
58
60
  ### Before `scan`
59
61
 
60
62
  ```sh
@@ -118,10 +120,10 @@ scan
118
120
 
119
121
  `scan` uses a plain `xcodebuild` command, therefore keeping 100% compatible with `xcodebuild`. To generate the nice output, `scan` uses [xcpretty](https://github.com/supermarin/xcpretty). You can alway access the raw output in `~/Library/Logs/scan`.
120
122
 
121
- ![/assets/scanScreenshot.png](/assets/scanScreenshot.png)
122
- ![/assets/slack.png](/assets/slack.png)
123
- ![/assets/scanHTML.png](/assets/scanHTML.png)
124
- ![/assets/scanHTMLFailing.png](/assets/scanHTMLFailing.png)
123
+ ![assets/scanScreenshot.png](assets/scanScreenshot.png)
124
+ ![assets/slack.png](assets/slack.png)
125
+ ![assets/scanHTML.png](assets/scanHTML.png)
126
+ ![assets/scanHTMLFailing.png](assets/scanHTMLFailing.png)
125
127
 
126
128
  # Installation
127
129
 
data/lib/scan/runner.rb CHANGED
@@ -6,8 +6,7 @@ require 'terminal-table'
6
6
  module Scan
7
7
  class Runner
8
8
  def run
9
- test_app
10
- handle_results
9
+ handle_results(test_app)
11
10
  end
12
11
 
13
12
  def test_app
@@ -20,6 +19,7 @@ module Scan
20
19
  end
21
20
  }
22
21
  ]
22
+ exit_status = 0
23
23
  FastlaneCore::CommandExecutor.execute(command: command,
24
24
  print_all: true,
25
25
  print_command: true,
@@ -27,6 +27,7 @@ module Scan
27
27
  loading: "Loading...",
28
28
  error: proc do |error_output|
29
29
  begin
30
+ exit_status = $?.exitstatus
30
31
  ErrorHandler.handle_build_error(error_output)
31
32
  rescue => ex
32
33
  SlackPoster.new.run({
@@ -35,9 +36,10 @@ module Scan
35
36
  raise ex
36
37
  end
37
38
  end)
39
+ exit_status
38
40
  end
39
41
 
40
- def handle_results
42
+ def handle_results(tests_exit_status)
41
43
  # First, generate a JUnit report to get the number of tests
42
44
  require 'tempfile'
43
45
  output_file = Tempfile.new("junit_report")
@@ -66,6 +68,7 @@ module Scan
66
68
 
67
69
  ReportCollector.new.parse_raw_file(TestCommandGenerator.xcodebuild_log_path)
68
70
 
71
+ UI.user_error!("Test execution failed. Exit status: #{tests_exit_status}") unless tests_exit_status == 0
69
72
  UI.user_error!("Tests failed") unless result[:failures] == 0
70
73
  end
71
74
  end
data/lib/scan/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Scan
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  DESCRIPTION = "The easiest way to run tests of your iOS and Mac app"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-11 00:00:00.000000000 Z
11
+ date: 2016-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
256
256
  version: '0'
257
257
  requirements: []
258
258
  rubyforge_project:
259
- rubygems_version: 2.4.0
259
+ rubygems_version: 2.4.5.1
260
260
  signing_key:
261
261
  specification_version: 4
262
262
  summary: The easiest way to run tests of your iOS and Mac app