Date: Friday, March 3, 2006 @ 16:48:23
Author: gilles
Path: /cvsroot/carob/carob/test
Modified: CarobTestLauncher.cpp (1.27 -> 1.28)
Tuned cppunit to give more info when running test (the name of the test and its
result is now displayed)
-----------------------+
CarobTestLauncher.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Index: carob/test/CarobTestLauncher.cpp
diff -u carob/test/CarobTestLauncher.cpp:1.27
carob/test/CarobTestLauncher.cpp:1.28
--- carob/test/CarobTestLauncher.cpp:1.27 Mon Feb 27 17:05:33 2006
+++ carob/test/CarobTestLauncher.cpp Fri Mar 3 16:48:23 2006
@@ -25,6 +25,7 @@
//#include <qt3/qapplication.h>
#include <cppunit/TestResult.h>
+#include <cppunit/BriefTestProgressListener.h>
#include "CarobException.hpp"
#include "StringCodecs.hpp"
@@ -60,7 +61,7 @@
log4cxx::BasicConfigurator::configure();
#endif
- //setLogLevel(LOG_LEVEL_INFO);
+ //setLogLevel(LOG_LEVEL_DEBUG);
setLogLevel(LOG_LEVEL_OFF);
std::locale::global(std::locale(""));
@@ -85,7 +86,9 @@
// add our own protector
CarobProtector* cprot = new CarobProtector();
runner.eventManager().pushProtector(cprot);
-
+ CppUnit::BriefTestProgressListener listener;
+ runner.eventManager().addListener( &listener );
+
runner.run();
//Do *NOT* delete CarobProtector, it is done by the ProtectorChain (in pop())
return 0;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits