[Cppunit-devel] Testrunner interface
Brought to you by:
blep
From: Philippe F. <P....@OB...> - 2003-01-07 13:11:08
|
Hi, I want to write my custom test outputter with the following characteristics: 1. the name of the test being run is printed 2. the full failure is reported during the test run 3. a percentage of the number of test failed is printed at the end. 1 & 2 can be done using TestResultCollecter or using a custom TestListener 3 can be done using TestResult or an Outputter But how do I glue this together ? TestRunner should be my interface. But it turns out that TestRunner does have enough methods to customise the progress reporter. So I have to inherit from TestRunner to do what I want. This is a pity because internally, TestRunner has everything I need. For the next version of cppunit, I suggest to add a few methods, that would behave basically like setOutputter: provide a sensible text default but allow for customisation. I need: setTestProgressListener( TestListener ); and probably setTestResultCollecter( TestResultCollecter ); This won't break binary compatibility. Do you want the patches ? regards, Philippe |