From 8c24e60a1c43fc24ee65618155795037770b5196 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Fri, 1 Jun 2001 18:34:42 +0000 Subject: Added project cppunittest to examples/: unit tests to test cppunit. added project cppunittest to examples/: unit tests to test cppunit. The main file is CppUnitTestMain.cpp. Unit tests have been implemented for TestCaller and TestListener. * added project CppUnitTestApp to examples/msvc6: graphical runner for cppunittest. * added TestListener to TestResult. It is a port of junit TestListener. * updated some .cvsignore to ignore files generated with VC++. --- examples/cppunittest/CppUnitTestMain.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/cppunittest/CppUnitTestMain.cpp (limited to 'examples/cppunittest/CppUnitTestMain.cpp') diff --git a/examples/cppunittest/CppUnitTestMain.cpp b/examples/cppunittest/CppUnitTestMain.cpp new file mode 100644 index 0000000..a3043ad --- /dev/null +++ b/examples/cppunittest/CppUnitTestMain.cpp @@ -0,0 +1,14 @@ +#include +#include + +int +main( int argc, char* argv[] ) +{ + CppUnit::TextTestRunner runner; + runner.addTest( CppUnit::TestFactoryRegistry::getRegistry().makeTest() ); + + runner.run(); + + return 0; +} + -- cgit v1.2.1