Re: [Cppunit-devel] Custom progress with TextTestRunner
Brought to you by:
blep
|
From: Baptiste L. <gai...@fr...> - 2002-03-27 16:38:17
|
----- Original Message ----- From: "Robert Wenner" <ro...@po...> To: "Baptiste Lepilleur" <gai...@fr...> Cc: <cpp...@li...> Sent: Wednesday, March 27, 2002 5:11 PM Subject: Re: [Cppunit-devel] TODO Documentation > On Wed, Mar 27, 2002 at 04:46:02PM +0100, Baptiste Lepilleur wrote: > > > What you want is a custom TextTestProgressListener. At the current time it's > > hardcoded, but I'll add some methods (like setOutputer) to allow simple > > customization. Hum, actually you can already do that (forgot that I exposed the eventManager to do that): CppUnit::TextTestRunner runner; runner.addTest( CppUnitTest::suite() ); // Add the top suite to the test runner runner.eventManager().addListener( &myProgress ); // your progress indicator runner.run(...) => the TextTestProgressListener would still be used, but called your listener (since it was registered first). I'll just add an option to make it optional. Baptiste. |