Ask a Question related to Ruby, Design and Development.
-
Robert Klemme #1
Method test::unit::TestSuite#<<(test)
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
Robert Klemme Guest
-
[proposal] Test::Unit name of failing method
I have some code which sometimes goes into endless recursion, so that I have to do CTRL-C to stop it. The call-stack is very deep, and Test::Unit... -
Test::Unit non-auto-run test case?
I'm getting a handle on the Test::Unit library, and the automatically-running test case example was extremely simple to get running, but now I want... -
Test::Unit -- multiple errors in test method ???
Hi ! I have been writing some unit tests with Test::Unit. I've noted that when an assertion fails in a test method, the remaining assertions... -
Test order in Test::Unit
On Sun, Jul 06, 2003 at 02:05:57AM +0900, Nathaniel Talbott wrote: instance_eval is also extremely useful; it lets you get at instance variables... -
Test::Unit GUI
nathaniel@NOSPAMtalbott.ws (nathaniel@NOSPAMtalbott.ws) wrote: Hello Nathaniel! Have you considered to include gtk2 patch for Test::Unit... -
Nathaniel Talbott #2
Re: Method test::unit::TestSuite#<<(test)
Robert Klemme [mailto:bob.news@gmx.net] wrote:
An excellent idea. Thanks.> 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
Nathaniel
<:((><
Nathaniel Talbott Guest



Reply With Quote

