views:

150

answers:

2

i.e. as I compose my test suites to include other suites as well as test cases, is there a global count of how many tests the TestRunner has executed, will be executing?

Any way I can progammatically access that count?

+2  A: 

not sure about how many it has executed, but couldn't you check how many total tests using self.methods.grep(/test_/)?

rampion
A: 

Test::Unit::TestSuite#size may be helpful.

Test::Unit::TestCase#size probably isn't, as it returns 1.

Andrew Grimm