summaryrefslogtreecommitdiff
path: root/examples/cppunittest/CppUnitTestMain.cpp
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2001-06-01 18:34:42 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2001-06-01 18:34:42 +0000
commit8c24e60a1c43fc24ee65618155795037770b5196 (patch)
tree753bbfb0a0ddf015a9694e6ae3890bc0ca84f5de /examples/cppunittest/CppUnitTestMain.cpp
parentbc6338edfd9b10327c83142fef1e427c5cb3e80f (diff)
downloadcppunit-8c24e60a1c43fc24ee65618155795037770b5196.tar.gz
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++.
Diffstat (limited to 'examples/cppunittest/CppUnitTestMain.cpp')
-rw-r--r--examples/cppunittest/CppUnitTestMain.cpp14
1 files changed, 14 insertions, 0 deletions
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 <cppunit/TextTestRunner.h>
+#include <cppunit/extensions/TestFactoryRegistry.h>
+
+int
+main( int argc, char* argv[] )
+{
+ CppUnit::TextTestRunner runner;
+ runner.addTest( CppUnit::TestFactoryRegistry::getRegistry().makeTest() );
+
+ runner.run();
+
+ return 0;
+}
+