| Class | Test::Unit::TestSuite |
| In: |
test/unit/testsuite.rb
|
| Parent: | Object |
Constants
| STARTED | = | name + "::STARTED" |
| FINISHED | = | name + "::FINISHED" |
Attributes
| name | [R] | |
| tests | [R] |
Public Class methods
Public Instance methods
Adds the test to the suite.
# File test/unit/testsuite.rb, line 38
38: def <<(test)
39: @tests << test
40: self
41: end
Retuns the rolled up number of tests in this suite; i.e. if the suite contains other suites, it counts the tests within those suites, not the suites themselves.
# File test/unit/testsuite.rb, line 50
50: def size
51: total_size = 0
52: @tests.each { |test| total_size += test.size }
53: total_size
54: end