uispecrunner 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/uispecrunner/drivers/waxsim.rb +5 -1
- data/lib/uispecrunner/options.rb +6 -0
- data/lib/uispecrunner.rb +1 -1
- data/uispecrunner.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
@@ -15,10 +15,14 @@ class UISpecRunner
|
|
15
15
|
File.join(WAXSIM_BIN_DIR, 'waxsim')
|
16
16
|
end
|
17
17
|
|
18
|
+
def family_switch
|
19
|
+
"-f #{config.family}" if config.family
|
20
|
+
end
|
21
|
+
|
18
22
|
def run_specs(env)
|
19
23
|
env_args = env.map { |k,v| "-e #{k}=#{v} "}.join(' ')
|
20
24
|
# TODO: Add support for family...
|
21
|
-
command = %Q{#{waxsim_path} -s #{config.sdk_version} #{env_args} "#{config.app_path}"}
|
25
|
+
command = %Q{#{waxsim_path} -s #{config.sdk_version} #{family_switch} #{env_args} "#{config.app_path}"}
|
22
26
|
puts "Executing: #{command}"
|
23
27
|
`#{command}`
|
24
28
|
end
|
data/lib/uispecrunner/options.rb
CHANGED
@@ -95,6 +95,12 @@ class UISpecRunner
|
|
95
95
|
self[:target] = target
|
96
96
|
end
|
97
97
|
|
98
|
+
o.on('-f', '--family [FAMILY]',
|
99
|
+
'Utilize the specified device family: iphone or ipad. (Requires --driver waxsim)',
|
100
|
+
'Default: iphone') do |family|
|
101
|
+
self[:family] = family
|
102
|
+
end
|
103
|
+
|
98
104
|
o.on('--builddir [BUILD_DIR]',
|
99
105
|
'Run app in the build directory.',
|
100
106
|
'Default: ./build') do |build_dir|
|
data/lib/uispecrunner.rb
CHANGED
@@ -15,7 +15,7 @@ class UISpecRunner
|
|
15
15
|
attr_accessor :workspace, :scheme, :project, :target, :configuration, :sdk_version, :build_dir
|
16
16
|
|
17
17
|
# Run Options
|
18
|
-
attr_accessor :verbose, :securityd, :driver, :env, :exit_on_finish, :app_path, :skip_build
|
18
|
+
attr_accessor :verbose, :securityd, :driver, :env, :exit_on_finish, :app_path, :skip_build, :family
|
19
19
|
|
20
20
|
# private
|
21
21
|
attr_accessor :run_mode, :spec, :example, :protocol
|
data/uispecrunner.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{uispecrunner}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Blake Watters"]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-19}
|
13
13
|
s.default_executable = %q{uispec}
|
14
14
|
s.description = %q{Provides a simple Ruby interface for running UISpec iPhone tests}
|
15
15
|
s.email = %q{blake@twotoasters.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uispecrunner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Blake Watters
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-19 00:00:00 -04:00
|
19
19
|
default_executable: uispec
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|