Lisa Crispin wrote:
Simply review http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.htmlEventually we want to run our tests from CruiseControl, but I think the first baby step would be actually to run a suite of tests from the command line. (Or maybe I'm wrong about that, maybe I should run each test from ant, I am not sure, I am seeking advice on this). The test::unit doc (http://www.ruby-doc.org/core/classes/Test/Unit.html) shows that you can simply require each test and it will magically be run. This works. However, I want a summary of the results at the end, how many tests ran, how many assertions, failures, errors, summed for all the tests that ran.I've googled and looked at the Scripting for Testers class materials (Boy, I wish I could have attended that at Agile 2005, but I was presenting at the same time), and I can't find out how to do this. I see there is something called 'Watir::logging' (very clever) but I can't find any doc on how to use it (at least, not any doc that I can make heads or tails out of). Is there a way to run a suite of tests and get a summary of the results at the end? Am I better off doing this in ant from the get-go or am I correct to look for intermediate steps? thanks, Lisa _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general The Test::Unit framework supports TestCase objects ( multiple tests within a single class ) .. and TestSuite objects which lets you aggregate multiple TestCase objects into a single suite. The documentation has numerous examples. I think it will cover all of the situations you are trying to cover. j. |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
