testplan 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/testplan/version.rb +1 -1
- data/lib/testplan.rb +8 -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: 037a992cc75ac85a66ba0d1f9314f2a022d34c52
|
4
|
+
data.tar.gz: 4afb94608239a1f58c90a76785c1ec9826489490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25c26db41b103301bc946beef39d6f775349924c1b686698fdeb5cc021bd7de4126998279bb3e134c6844617b86721b7b5cd072c95a89b30bdee6e38b34c7b54
|
7
|
+
data.tar.gz: 122ce3606a04ab2c286fd06736ed82a308a14f69ebebd8d2edc3345332357f2e241b904ce74be2895112f345c67d94c58c54b14a6986a8c95350171cb4215758
|
data/CHANGELOG.md
CHANGED
data/lib/testplan/version.rb
CHANGED
data/lib/testplan.rb
CHANGED
@@ -17,6 +17,7 @@ module Testplan
|
|
17
17
|
|
18
18
|
class Build
|
19
19
|
def self.plan_in_format(plan, format)
|
20
|
+
exitcode = 0
|
20
21
|
config = $initconf.call
|
21
22
|
config[:testplans][plan].each do |tplan|
|
22
23
|
envarr = {}
|
@@ -29,10 +30,16 @@ module Testplan
|
|
29
30
|
config[:platforms][tplan][:cases].each do | acase |
|
30
31
|
exec_string = "#{envstring}bundle exec rake #{format.to_s} SPEC_OPTS=\"-e #{acase}\""
|
31
32
|
print "\nRunning testcase #{acase} with ENV: #{envstring}\n"
|
32
|
-
system exec_string
|
33
|
+
exitcode = 1 unless system exec_string
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
37
|
+
if exitcode > 0
|
38
|
+
raise 'at least one test failed'
|
39
|
+
end
|
40
|
+
|
41
|
+
return exitcode
|
42
|
+
|
36
43
|
end
|
37
44
|
|
38
45
|
def self.make_env_string(envarr)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testplan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pim Snel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|