Files
bullet3/UnitTests/cppunit/include/cppunit/extensions/XmlInputHelper.h
erwin.coumans a983353f34 added cppunit unit testing framework, using cmake, stripped out the original build systems.
added starting point for Bullet unit tests, with one example unit test
Enable the option BUILD_UNIT_TESTS in cmake to build the test. Note that the test doesn't automatically run.
2010-07-23 22:09:57 +00:00

23 lines
980 B
C++

#ifndef CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H
#define CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H
#include <cppunit/ParameterizedTestCase.h>
/*! \brief Adds a parameterized test method to the suite.
* \param testMethod Name of the method of the test case to add to the
* suite. The signature of the method must be of
* type: void testMethod(std::istream& param_in, std::istream& exp_in);
* \see CPPUNIT_TEST_SUITE.
*/
#define CPPUNIT_TEST_XML( testMethod) \
CPPUNIT_TEST_ADD( new CppUnit::ParameterizedTestCase<ThisTestFixtureType>( \
context.getTestNameFor( #testMethod ), \
#testMethod, \
&TestFixtureType::testMethod, \
context.makeFixture(), \
context.getStringProperty( std::string("XmlFileName") ) ) )
#endif // CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H