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.
- data/lib/testowl/test_unit_runner.rb +3 -2
- data/lib/testowl/version.rb +1 -1
- metadata +4 -4
@@ -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
|
data/lib/testowl/version.rb
CHANGED
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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-
|
18
|
+
date: 2011-06-28 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|