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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90b5bcf45fc05d0b54961a6f5ce039f9ea166aa0
4
- data.tar.gz: ce339decaa2e3a2d46108e2c1a9015d81a2d6d62
3
+ metadata.gz: 037a992cc75ac85a66ba0d1f9314f2a022d34c52
4
+ data.tar.gz: 4afb94608239a1f58c90a76785c1ec9826489490
5
5
  SHA512:
6
- metadata.gz: c3330c90cb127d082c395a00a805d1fd399fb5c2f091415f3585afcea15aa35237e20b6559f464d467baf8f22b3d4df1996c00c429ab185af38465cfa3dadfbb
7
- data.tar.gz: 0f7a9e28020f76bf3564e8e4b2f7fb9f8d2c413678134e9ad87128cd55403413fbdde08c6efced78f56b10bbbe25a3693376561c3828de83e5ab2558b48d1481
6
+ metadata.gz: 25c26db41b103301bc946beef39d6f775349924c1b686698fdeb5cc021bd7de4126998279bb3e134c6844617b86721b7b5cd072c95a89b30bdee6e38b34c7b54
7
+ data.tar.gz: 122ce3606a04ab2c286fd06736ed82a308a14f69ebebd8d2edc3345332357f2e241b904ce74be2895112f345c67d94c58c54b14a6986a8c95350171cb4215758
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.0.3 2015-06-18 Pim
4
+ * Raise when one test fails
5
+
3
6
  ## 0.0.2 2015-03-11 Pim
4
7
  * Add cli which can create Requirement Specification Document
5
8
 
@@ -1,3 +1,3 @@
1
1
  module Testplan
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-03-12 00:00:00.000000000 Z
11
+ date: 2015-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler