calasmash 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/calasmash/version.rb +1 -1
- data/lib/calasmash.rb +22 -1
- metadata +2 -2
data/lib/calasmash/version.rb
CHANGED
data/lib/calasmash.rb
CHANGED
@@ -12,6 +12,8 @@ module Calasmash
|
|
12
12
|
@options = parse(args)
|
13
13
|
if @options[:valid]
|
14
14
|
start
|
15
|
+
else
|
16
|
+
puts "Invalid options!"
|
15
17
|
end
|
16
18
|
end
|
17
19
|
|
@@ -45,6 +47,16 @@ module Calasmash
|
|
45
47
|
opt.on("-h","--help","help") do
|
46
48
|
puts @opt_parser
|
47
49
|
end
|
50
|
+
|
51
|
+
opt.on('-f', "--format FORMAT", "test report format e.g. junit") do |tags|
|
52
|
+
puts @opt_parser
|
53
|
+
options[:format] = tags
|
54
|
+
end
|
55
|
+
|
56
|
+
opt.on('-o', "--out OUTPUT", "test report output path e.g. test") do |tags|
|
57
|
+
puts @opt_parser
|
58
|
+
options[:out] = tags
|
59
|
+
end
|
48
60
|
end
|
49
61
|
|
50
62
|
@opt_parser.parse! args
|
@@ -93,7 +105,16 @@ module Calasmash
|
|
93
105
|
|
94
106
|
def run_cucumber
|
95
107
|
puts "Running cucumber..."
|
96
|
-
|
108
|
+
|
109
|
+
optional_params = ""
|
110
|
+
if(@options[:out] && @options[:format])
|
111
|
+
optional_params = "--format #{@options[:format]} --out #{@options[:output]} "
|
112
|
+
end
|
113
|
+
|
114
|
+
cucumber_command = "cucumber OS=ios7 SDK_VERSION=7.0 DEVICE_TARGET=simulator --tags #{@options[:tags]}"
|
115
|
+
cucumber_command += optional_params
|
116
|
+
|
117
|
+
IO.popen(cucumber_command) {|output|
|
97
118
|
puts output.read
|
98
119
|
}
|
99
120
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calasmash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
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: 2013-09-
|
12
|
+
date: 2013-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|