TestUnit assertions


#1

In the teardown() method, I’ll like to obtain a list of the assertions,
errors and failures that occurred during the test run. How can I do
this?


#2

bump


#3

On Jun 14, 2006, at 11:10 AM, Patrick S. wrote:

bump


Posted via http://www.ruby-forum.com/.

This is unacceptable. You apparently don’t know it, but you are
posting to a Mailing-List, through a web gateway. You just sent an
email with the sole content of bump to hundreds of people. Please
don’t “bump” ever again.


#4

On Jun 14, 2006, at 16:10, Patrick S. wrote:

bump

Please remember that the forum is a gateway to a mailing list, where
'bump’ing is discouraged. If you don’t get an answer, the single
best thing you can do is try to answer your own question and then ask
more-specific questions about where you ran into problems.

In the teardown() method, I’ll like to obtain a list of the
assertions,
errors and failures that occurred during the test run. How can I do
this?

Read the documentation: http://www.ruby-doc.org/stdlib/libdoc/test/
unit/rdoc/

It’s hard to know exactly what you’re after, but it might be as
simple as using Test::Unit::UI::Console::TestRunner with your test
suite. In any case, I don’t think that the teardown method is
exactly where you want to do this sort of thing, but rather in the
test runner.

Best of luck.
matthew smillie.