Many new features. The tar ball can be found at:
http://cppunit.sourceforge.net/snapshot/
http://cppunit.sourceforge.net/snapshot/cppunit-1.9.0.tar.gz
http://cppunit.sourceforge.net/snapshot/cppunit-docs-1.9.0.tar.gz
I especially want feedback from VC++ 7.0 (.NET) since I should have solved
the problem with MfcTestRunner (removed add-in dependency).
New in CppUnit 1.9.0:
----------------------
In short:
- Exploration of the test hierarchy without RTTI support
- Utility methods to find a test in the hierarchy
- TestPath to store/load the path to a specific test in the hierarchy
- Generic TestRunner
- Style sheet support added to XML ouput.
- CompilerOutputter supports run-time parametrization of error location
format.
- Tracking of test suite run.
- Debugging and post-build testing of DLL using DllPlugInTester.
- Easy creation a test plug-in and test plug-in new example
* Test:
- Exploration of the test hierarchy without RTTI support:
Added Test::getChildTestCount() and Test::getChildTestAt() to walk the
test hierarchy
without RTTI.
- Utility methods to find a test in the hierarchy:
Added Test::findTest(), Test::findTestPath() and Test::resolveTestPath().
* TestPath:
- A new class that store the path to a specific test (list of pointer).
Can be
converted into a string and constructed from a string. Typically used
with
TestRunner.
* TestListener:
- Added startSuite() and endSuite() callback that are called before and
after a
test suite runs its child tests. See TestListener for detail and new
example.
* CompilerOutputter:
- Support run-time parametrization of compiler error format. Support for
gcc error
format added. See CompilerOutputter::setLocationFormat().
* XmlOutputter:
- Added style sheet support.
- XML structure change (see Compatibility break)
* DllPlugInTester: (src/msvc6/DllPlugInTester, in src/CppUnitLibraries.dsw)
- An application to load a DLL test plug-in and run the specified test.
Test
result are reported using a CompilerOutputter. It can be used for
post-build
testing, but to debug DLL too! See examples/msvc6/TestPlugIn/TestPlugIn.dsp
which demonstrate both.
* TestPlugInInterface (include/msvc6/TestPlugInInterface.h):
- Easy creation a test plug-in with the new macro CPPUNIT_TESTPLUGIN_IMPL
that implements and exports everything for you.
See examples/msvc6/EasyTestPlugIn for an example.
* Compatibility break:
- Test::toString() has been removed. Applies to all subclass of Test.
It was not used by the framework and was source of confusion with
getName().
- TestCase::run(void) and TestCase::defaultResult() have been removed.
Using the
run() method with a TestResult instead.
- XmlOutput: added a message element to the XML structure. The message
associated
to a failure is now in the content of <Message> element instead of in
the content
of the <FailedTest> element.
Changed from:
<FailedTest id="6">
<Name>test6</Name>
<FailureType>Error</FailureType>
error2
</FailedTest>
To:
<FailedTest id="6">
<Name>test6</Name>
<FailureType>Error</FailureType>
<Message>error2</Message>
</FailedTest>
* Deprecated:
- CompilerOutputter::defaultOutputter(): use default constructor instead.
* Bug fix:
- XmlOutputter: did not escape content (bug #540944).
- Included qt/examples in distribution
- Removed dependency of MfcTestRunner on DSPlugIn. It should now compile
with
VC++ 7.
Baptiste.
---
Baptiste Lepilleur <gai...@fr...>
http://gaiacrtn.free.fr/
|