Re: [Cppunit-devel] news features...
Brought to you by:
blep
From: Volker B. <vbo...@te...> - 2001-10-05 14:01:34
|
On Fri, 5 Oct 2001, Baptiste Lepilleur wrote: > A basic XML output has been added (I haven't tested it against XML softwa= re > yet, but the unit test say it's ok. So if I didn't mess up with the forma= t > it should be ok). great to hear there's progress on the output front. Some months ago (when i didn't knew the new CppUnit) i started to add some convenient features to the output but found it very difficult to change something. (And i ended in rewriting a lot of TextTestRunner, TestResult and the Decorateur completely...) I wanted the following features: - for every test method the name of the test was printed to STDOUT either "passed", "failed" or "error". - after execution of every single Test: print the name of the test method and the execution time for the test to STDERR. (That way we could mis-use the Unittests for performance checks) - after each suite print either "--- suite: failed ---" or "--- suite: success ---" goes to STDOUT. - a more detailed summary of the suite is printed to STDERR. That way it was easy to get both, a compact log e.g. for a daily build, and a verbose log (first on STDOUT, the latter on STDERR). Additionally every failure and error is printed in the same format that is used by g++. When i run the compile like that make && ./MyClassTest from my IDE (emacs) I can use the editor's parser to get to the=20 location of test-errors using 'next-error'. And - an essential for batch processing - the TextTestRunner returned an exit code that was translated in an exit code of the program signaling error or success. I hope it will be easier to implement such a thing after your changes. > Somebody on the Unix side should check that everything build correctly. 1= 15 > Unit tests should be running. There is a problem with missing itoa() (not only) on Linux, gcc version 2.95.2. I have attached a fix. Regards, Volker --=20 Volker Boerchers <vbo...@te...> System Engineer TECON Systems AG, Perlengraben 2, 50676 K=F6ln, http://www.tecon.de Tel: +49-221-92007-55, Fax: +49-221-92007-77 |