scan 0.7.0 → 0.7.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: 3e80ce377dfea30070cc638147cb93688e8c3fd3
4
- data.tar.gz: 59750c70db3b139fcb532a8840e6f5c342a363d2
3
+ metadata.gz: 0bcd8ee8019bb241821adea0e93da4de004d4e14
4
+ data.tar.gz: aa7fd2adc1974ad04a16e87506734d64bf9af726
5
5
  SHA512:
6
- metadata.gz: 200af6ecf87403148f386fb1f4ffdc72eef3728c18f3041c49bf24f14d52db24e7effa7b120120f39c17f66c04784bf6e46608d3de6d55841f8022da99057bde
7
- data.tar.gz: 8ef71b1679533343d44c1dafacdaa38154dca06121faf67c8f5aff8680410b743acad96735dddad32339c722d5b23c3afa1b990e812d150800146590a72a8722
6
+ metadata.gz: 9315af243cdc6c1fb0ed059c8140e1a0ef7bd0950afdbce0c508910dcf2c831d5527c6ffd9c56044416a06fb11e908955f4664cd25461ae863efe77ac11787a9
7
+ data.tar.gz: 53077320e1aacc44a2a76e4e3c8f2a0c158078e85d0065d5df7eabf2dc7b1e048868f7a420a092de3f338bb4c845a980b2f8858745c122bb1999dace25bba228
data/README.md CHANGED
@@ -141,10 +141,19 @@ That's all you need to run your tests. If you want more control, here are some a
141
141
 
142
142
  scan --workspace "Example.xcworkspace" --scheme "AppName" --device "iPhone 6" --clean
143
143
 
144
- If you need to use a different xcode install, use xcode-select or define DEVELOPER_DIR:
144
+ If you need to use a different xcode install, use `xcode-select` or define `DEVELOPER_DIR`:
145
145
 
146
146
  DEVELOPER_DIR="/Applications/Xcode6.2.app" scan
147
147
 
148
+ To run `scan` on multiple devices via [fastlane](https://fastlane.tools), add this to your `Fastfile`:
149
+
150
+ ```ruby
151
+ scan(
152
+ workspace: "Example.xcworkspace",
153
+ devices: ["iPhone 6s", "iPad Air"]
154
+ )
155
+ ```
156
+
148
157
  For a list of all available parameters use
149
158
 
150
159
  scan --help
@@ -159,6 +168,7 @@ Run `scan init` to create a new configuration file. Example:
159
168
 
160
169
  ```ruby
161
170
  scheme "Example"
171
+ devices: ["iPhone 6s", "iPad Air"]
162
172
 
163
173
  clean true
164
174
 
@@ -15,7 +15,7 @@ module Scan
15
15
  # in case the user specified multiple targets works with no issues
16
16
  # This way it's okay to just call it for the first simulator we're using for
17
17
  # the first test run
18
- open_simulator_for_device(Scan.devices.first)
18
+ open_simulator_for_device(Scan.devices.first) if Scan.devices
19
19
 
20
20
  command = TestCommandGenerator.generate
21
21
  prefix_hash = [
@@ -2,11 +2,11 @@ module Scan
2
2
  class TestResultParser
3
3
  def parse_result(output)
4
4
  # e.g. ...<testsuites tests='2' failures='1'>...
5
- matched = output.match(%r{\<testsuites tests='(\d+)' failures='(\d+)'/?\>})
5
+ matched = output.scan(/<testsuites\b(?=[^<>]*\s+tests='(\d+)')(?=[^<>]*\s+failures='(\d+)')[^<>]+>/)
6
6
 
7
- if matched and matched.length == 3
8
- tests = matched[1].to_i
9
- failures = matched[2].to_i
7
+ if matched and matched.length == 1 and matched[0].length == 2
8
+ tests = matched[0][0].to_i
9
+ failures = matched[0][1].to_i
10
10
 
11
11
  return {
12
12
  tests: tests,
@@ -1,4 +1,4 @@
1
1
  module Scan
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.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.7.0
4
+ version: 0.7.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-05-23 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  version: '0'
271
271
  requirements: []
272
272
  rubyforge_project:
273
- rubygems_version: 2.4.0
273
+ rubygems_version: 2.4.5.1
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: The easiest way to run tests of your iOS and Mac app