testowl 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,9 +20,10 @@ module Testowl
20
20
  puts "Done"
21
21
  lines = results.split("\n")
22
22
  exception_message = lines.detect{|line| line =~ /^Exception encountered/ }
23
- counts = lines.detect{|line| line =~ /(\d+)\sassertions?,\s(\d+)\sfailures?/ }
23
+ counts = lines.detect{|line| line =~ /(\d+)\sassertions?,\s(\d+)\sfailures?,\s(\d+)\serrors?/ }
24
24
  if counts
25
- file_count, test_count, fail_count = counts.split(',').map(&:to_i)
25
+ file_count, test_count, fail_count, error_count = counts.split(',').map(&:to_i)
26
+ fail_count += error_count # let's lump errors and failures together
26
27
  timing = lines.detect{|line| line =~ /Finished\sin/}
27
28
  timing = timing.sub(/Finished\sin/, '').strip if timing
28
29
  return test_count, fail_count, timing
@@ -1,3 +1,3 @@
1
1
  module Testowl
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testowl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bill Horsman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-24 00:00:00 -07:00
18
+ date: 2011-06-28 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency