snapshot 0.10.0 → 0.10.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: a7f64dd119934c713a6b6fc7e05653ac8ebca9d1
4
- data.tar.gz: 28d7d068560b15e39d75acdfdaf822bd49464aca
3
+ metadata.gz: 710336613b552ca8f78f1a8056e9411c01b1e09f
4
+ data.tar.gz: 5ddfb37f7d7cec575d3fd4c1c6ab248464611c39
5
5
  SHA512:
6
- metadata.gz: f5697b920fda9b3352ce8c187f9c9489445ac49d285b02bcbed61fbdb1c55eb63b027d1c86154700f2a60eaf4bb6dcd9234fa5ca746aed1659efa29a10290516
7
- data.tar.gz: 4ec9ce6549d8007be4c8dc9e026e96347ed249e7bc17e1505d96eceb7a46aad63a13afe69a36d272fad77160f1c4f42fe78bf40ac74cf1f9fdf2720d85ab35df
6
+ metadata.gz: 88f7e6b1d10c69f53bee86182878133e978b84273840991a156ebbf15021d887fbb9a47a64a3de55ce52939a163280dfed1c33329fb2aab94f4fe35114091fa3
7
+ data.tar.gz: 96341119397e22ed1929cfeedadd919a3c550cf98eef3b420cd3d1b4f5463e1864e6d6f99e9e0819246ee0d0d9d43b98369af94cfa44d306cd56ccd983ed5a4f
data/README.md CHANGED
@@ -71,8 +71,6 @@ As a result, `snapshot` will be completely rewritten from ground up without chan
71
71
  - UI Tests are written in Swift or Objective C
72
72
  - UI Tests can be executed in a much cleaner and better way
73
73
 
74
- A note to the new release of Xcode 7: `snapshot` has some issues with the GM, please use Xcode 6 for UI Automation until this is resolved.
75
-
76
74
  -------
77
75
  <p align="center">
78
76
  <a href="#features">Features</a> &bull;
data/lib/snapshot.rb CHANGED
@@ -18,10 +18,10 @@ module Snapshot
18
18
  Snapshot::DependencyChecker.check_dependencies
19
19
 
20
20
  def self.xcode_version
21
- `xcodebuild -version`.match(/Xcode (.*)/)[1]
21
+ `xcodebuild -version`.match(/Xcode (.*)/)[1]
22
22
  end
23
23
 
24
24
  def self.min_xcode7?
25
- xcode_version.split(".").first.to_i >= 7
25
+ xcode_version.split(".").first.to_i >= 7
26
26
  end
27
27
  end
@@ -112,13 +112,17 @@ module Snapshot
112
112
  udid = udid_for_simulator(device)
113
113
 
114
114
  kill_simulator
115
- sleep 3
116
- com("xcrun simctl boot '#{udid}'")
117
115
 
118
- com("xcrun simctl uninstall '#{udid}' '#{app_identifier}'") unless Snapshot.min_xcode7?
119
- sleep 3
120
- com("xcrun simctl install '#{udid}' #{@app_path.shellescape}") unless Snapshot.min_xcode7?
121
- com("xcrun simctl shutdown booted")
116
+ if Snapshot.min_xcode7?
117
+ clean_old_traces
118
+ com("xcrun instruments -w '#{udid}' -t 'Blank' -l 1 -D '#{TRACE_DIR}/trace'")
119
+ else
120
+ com("xcrun simctl boot '#{udid}'")
121
+ end
122
+
123
+ com("xcrun simctl uninstall booted '#{app_identifier}'")
124
+ com("xcrun simctl install booted #{@app_path.shellescape}")
125
+ com("xcrun simctl shutdown booted") unless Snapshot.min_xcode7?
122
126
  end
123
127
 
124
128
  def run_tests(device, language, locale)
@@ -226,6 +230,7 @@ module Snapshot
226
230
  end
227
231
 
228
232
  def kill_simulator
233
+ `xcrun simctl shutdown booted`
229
234
  `killall "iOS Simulator"`
230
235
  `killall "Simulator"`
231
236
  end
@@ -1,3 +1,3 @@
1
1
  module Snapshot
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.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: 2015-09-16 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastimage