scan 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scan/runner.rb +12 -0
- data/lib/scan/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cc2fe474c347a129830537ffce88fe76b0a2d4c
|
4
|
+
data.tar.gz: 135a4581ccad9231202c43f4338dcb5fbea1eb82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 819d84e29eb6c03e34edec3514f5a5bf8aa2b9e0f38e3a5bff2e6a1d4075b1178aef94f2c11e798cbb50e2f17b79b58a3c94adaad6491c2dd5b6647bde93494b
|
7
|
+
data.tar.gz: bcf9bfe6456c0f8d8ed50d48760ab60aacf12e4e0e02dd88e15e63af85a722952007db9bd561bbbd560445c35b010f16a4778d7789c23d4d1c41c51174a0b1cc
|
data/lib/scan/runner.rb
CHANGED
@@ -10,6 +10,8 @@ module Scan
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def test_app
|
13
|
+
open_simulator_for_device(Scan.device)
|
14
|
+
|
13
15
|
command = TestCommandGenerator.generate
|
14
16
|
prefix_hash = [
|
15
17
|
{
|
@@ -76,5 +78,15 @@ module Scan
|
|
76
78
|
UI.user_error!("Test execution failed. Exit status: #{tests_exit_status}") unless tests_exit_status == 0
|
77
79
|
UI.user_error!("Tests failed") unless result[:failures] == 0
|
78
80
|
end
|
81
|
+
|
82
|
+
def open_simulator_for_device(device)
|
83
|
+
return unless ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR']
|
84
|
+
|
85
|
+
UI.message("Killing all running simulators")
|
86
|
+
`killall Simulator &> /dev/null`
|
87
|
+
|
88
|
+
UI.message("Explicitly opening simulator for device: #{device.name}")
|
89
|
+
`open -a Simulator --args -CurrentDeviceUDID #{device.udid}`
|
90
|
+
end
|
79
91
|
end
|
80
92
|
end
|
data/lib/scan/version.rb
CHANGED
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.6.
|
4
|
+
version: 0.6.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-
|
11
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|