Testrunner interface
Philippe FREMY <[email protected]> Tue, 7 Jan 2003 14:09:54 +0100
| Newsgroups | gmane.comp.lib.cppunit.devel |
|---|---|
| Message-ID | <191CBBF91062D411855D00D0B76F1C30010F37D4@PROXIMA> |
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 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com