guard-calabash-ios 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/lib/guard/calabash-ios/runner.rb +25 -1
- data/lib/guard/calabash-ios/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -28,4 +28,5 @@ When you're done, run following commands from project directory
|
|
28
28
|
sdk - ios4, ios5, by default :ios5
|
29
29
|
target - calabash target, by default $project-cal
|
30
30
|
config - Debug/Release, by default Debug
|
31
|
-
|
31
|
+
no_launch - don't automaticaly launch simulator, by default false. *Note: This is a new feature from version 0.9.48*
|
32
|
+
reset_between_scenarios - reset app data between scenarios, by default false
|
@@ -6,12 +6,16 @@ module Guard
|
|
6
6
|
attr_accessor :project
|
7
7
|
attr_accessor :target
|
8
8
|
attr_accessor :config
|
9
|
+
attr_accessor :no_launch
|
10
|
+
attr_accessor :reset_between_scenarios
|
9
11
|
def initialize(options)
|
10
12
|
self.sdk = init_sdk(options)
|
11
13
|
self.device = init_device(options)
|
12
14
|
self.project = init_project(options)
|
13
15
|
self.target = init_target(options)
|
14
16
|
self.config = init_config(options)
|
17
|
+
self.no_launch = init_no_launch(options)
|
18
|
+
self.reset_between_scenarios = init_reset_between_scenarios(options)
|
15
19
|
self.bundle_path = init_bundle_path(options)
|
16
20
|
end
|
17
21
|
|
@@ -54,6 +58,24 @@ module Guard
|
|
54
58
|
options[:config]
|
55
59
|
end
|
56
60
|
end
|
61
|
+
|
62
|
+
def init_no_launch(options)
|
63
|
+
case options[:no_launch]
|
64
|
+
when true
|
65
|
+
1
|
66
|
+
when false
|
67
|
+
0
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def init_reset_between_scenarios(options)
|
72
|
+
case options[:reset_between_scenarios]
|
73
|
+
when true
|
74
|
+
1
|
75
|
+
when false
|
76
|
+
0
|
77
|
+
end
|
78
|
+
end
|
57
79
|
|
58
80
|
def init_target(options)
|
59
81
|
if options[:target].nil?
|
@@ -86,7 +108,9 @@ module Guard
|
|
86
108
|
cmd << "APP_BUNDLE_PATH='#{self.bundle_path}'"
|
87
109
|
cmd << "OS=#{self.sdk}"
|
88
110
|
cmd << "DEVICE=#{self.device}"
|
89
|
-
cmd << "
|
111
|
+
cmd << "NO_LAUNCH=#{self.no_launch}" if self.no_launch
|
112
|
+
cmd << "RESET_BETWEEN_SCENARIOS=#{self.reset_between_scenarios}" if self.reset_between_scenarios
|
113
|
+
cmd << "cucumber #{features} --require features"
|
90
114
|
cmd.join ' '
|
91
115
|
end
|
92
116
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-calabash-ios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 0.9.48
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 0.9.48
|
46
46
|
description: ! 'Guard::Calabash-iOS automatically run your calabash features for iOS '
|
47
47
|
email:
|
48
48
|
- 1101.debian@gmail.com
|