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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75fe63431cbce5d2e16085376ff604bc88f3de26
4
- data.tar.gz: 29bcadf52f69285f3bb015e9c19edadfb7f90059
3
+ metadata.gz: ad3e199e65128364b0fa5fbdf84b92bcb36c4676
4
+ data.tar.gz: b35fe9cf0e478f137db664ea352f8a8efd4f9577
5
5
  SHA512:
6
- metadata.gz: cd237330bc5ea09c1a2cfaf9bbbfeda28037e2b557e03e49f11ed3d294417807f8cfe46a75faf3db944921a828dd44f321b01f86364c57677debc79158f920da
7
- data.tar.gz: cfbb9dab0b5b457f4bab8ad15238207f3085f36e6d3e6fe6fc0331e8da2927fdcd91bb37a49cc3c5136d5948b0a04bcd1d7a1cb320b0a7e238252a2e7956fd23
6
+ metadata.gz: 66c8aca53812dce104d189db03a21e5268530aed6902c686e9a6405126bff0201e7e12058642842de6a79042c57e8ef23be8ec545f9639d3c9c9d7ee1868ac38
7
+ data.tar.gz: 8925eac31be70bc57f59d9f75dcbed7fa7149094df7c0bd53df88caaf35789ec2a247ee7347d35140f7e2bd204602a41c4d7fa3da81be3fde91dbfe443cc3bcf
data/lib/RubyUnit.rb CHANGED
@@ -13,7 +13,7 @@ module RubyUnit
13
13
 
14
14
  ##
15
15
  # Current RubyUnit version
16
- VERSION = '0.3.21'
16
+ VERSION = '0.4.22'
17
17
 
18
18
  ##
19
19
  # Set debug mode
@@ -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)
@@ -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
- @@failures.count + @@errors.count
60
+ Report.status
77
61
  end
78
62
 
79
63
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyunit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.21
4
+ version: 0.4.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Clower