Class | Test::Unit::TestSuite |
In: |
lib/test/unit/testsuite.rb
|
Parent: | Object |
STARTED | = | name + "::STARTED" |
FINISHED | = | name + "::FINISHED" |
name | [R] | |
tests | [R] |
Adds the test to the suite.
# File lib/test/unit/testsuite.rb, line 40 40: def <<(test) 41: @tests << test 42: self 43: 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 lib/test/unit/testsuite.rb, line 52 52: def size 53: total_size = 0 54: @tests.each { |test| total_size += test.size } 55: total_size 56: end