R
Robert Klemme
Hi,
I suggest to change the definition of this method slightly:
current:
# Adds the test to the suite.
def <<(test)
@tests << test
end
proposed:
# Adds the test to the suite.
def <<(test)
@tests << test
self
end
This way we can do:
class TS_MyTests
def self.suite
Test::Unit::TestSuite.new <<
TC_MyFirstTests.suite <<
TC_MoreTestsByMe.suite <<
TS_AnotherSetOfTests.suite
end
end
Regards
robert
I suggest to change the definition of this method slightly:
current:
# Adds the test to the suite.
def <<(test)
@tests << test
end
proposed:
# Adds the test to the suite.
def <<(test)
@tests << test
self
end
This way we can do:
class TS_MyTests
def self.suite
Test::Unit::TestSuite.new <<
TC_MyFirstTests.suite <<
TC_MoreTestsByMe.suite <<
TS_AnotherSetOfTests.suite
end
end
Regards
robert