rubyunit 0.3.21 → 0.4.22
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.
- checksums.yaml +4 -4
- data/lib/RubyUnit.rb +1 -1
- data/lib/RubyUnit/Report.rb +4 -0
- data/lib/RubyUnit/Runner.rb +1 -17
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad3e199e65128364b0fa5fbdf84b92bcb36c4676
|
4
|
+
data.tar.gz: b35fe9cf0e478f137db664ea352f8a8efd4f9577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66c8aca53812dce104d189db03a21e5268530aed6902c686e9a6405126bff0201e7e12058642842de6a79042c57e8ef23be8ec545f9639d3c9c9d7ee1868ac38
|
7
|
+
data.tar.gz: 8925eac31be70bc57f59d9f75dcbed7fa7149094df7c0bd53df88caaf35789ec2a247ee7347d35140f7e2bd204602a41c4d7fa3da81be3fde91dbfe443cc3bcf
|
data/lib/RubyUnit.rb
CHANGED
data/lib/RubyUnit/Report.rb
CHANGED
@@ -71,6 +71,10 @@ module RubyUnit
|
|
71
71
|
report 'Incomplete Tests', @@incomplete, false
|
72
72
|
end
|
73
73
|
|
74
|
+
def self.status
|
75
|
+
@@fail.count + @@errors.count
|
76
|
+
end
|
77
|
+
|
74
78
|
def self.stats
|
75
79
|
elapsed = @@finish - @@start
|
76
80
|
inverse = Rational(elapsed.to_r.denominator,elapsed.to_r.numerator)
|
data/lib/RubyUnit/Runner.rb
CHANGED
@@ -10,24 +10,8 @@ module RubyUnit
|
|
10
10
|
class Runner
|
11
11
|
class << self
|
12
12
|
protected
|
13
|
-
#--
|
14
|
-
# Most of these variables need to be refactored. This is made so it can
|
15
|
-
# be used, but it's not very far along.
|
16
|
-
#++
|
17
13
|
# The list of Test Cases that have been run are are currently running
|
18
14
|
@@test_cases = []
|
19
|
-
# The list of RubyUnit::AssertionFailure exceptions that were caught by the
|
20
|
-
# test runner during testing
|
21
|
-
@@failures = []
|
22
|
-
# The list of RubyUnit::SkippedTest exceptions that were caught by the test
|
23
|
-
# runner during testing
|
24
|
-
@@skips = []
|
25
|
-
# The list of RubyUnit::IncompleteTest exceptions that were caught by the test
|
26
|
-
# runner during testing
|
27
|
-
@@incompletes = []
|
28
|
-
# The list of non RubyUnit::AssertionFailure exceptions that were caught by
|
29
|
-
# the test runner during testing
|
30
|
-
@@errors = []
|
31
15
|
# Whether or not the test suite still needs to be run. This is used by the
|
32
16
|
# automatic runner to determine if it must be run before the program exits.
|
33
17
|
@@autorun = true
|
@@ -73,7 +57,7 @@ module RubyUnit
|
|
73
57
|
end
|
74
58
|
Report.finish
|
75
59
|
report unless Report.tests.zero?
|
76
|
-
|
60
|
+
Report.status
|
77
61
|
end
|
78
62
|
|
79
63
|
#
|