Date: Wednesday, January 10, 2007 @ 11:58:27
Author: marc
Path: /cvsroot/carob/carob/test
Modified: CarobTestLauncher.cpp (1.41 -> 1.42)
Added shorter test listener example
-----------------------+
CarobTestLauncher.cpp | 9 +++++++++
1 files changed, 9 insertions(+)
Index: carob/test/CarobTestLauncher.cpp
diff -u carob/test/CarobTestLauncher.cpp:1.41
carob/test/CarobTestLauncher.cpp:1.42
--- carob/test/CarobTestLauncher.cpp:1.41 Wed Jan 10 11:45:06 2007
+++ carob/test/CarobTestLauncher.cpp Wed Jan 10 11:58:27 2007
@@ -26,6 +26,7 @@
#include <cppunit/TestResult.h>
#include <cppunit/BriefTestProgressListener.h>
+#include <cppunit/TextTestProgressListener.h>
#include "CarobException.hpp"
#include "StringCodecs.hpp"
@@ -214,8 +215,16 @@
// add our own protector
CarobProtector* cprot = new CarobProtector();
runner.eventManager().pushProtector(cprot);
+
+#if 0
+ // Add a minimal listener that print dots as test run.
+ CppUnit::TextTestProgressListener progress;
+ runner.eventManager().addListener( &progress );
+#else
+ // this one prints test names
CppUnit::BriefTestProgressListener listener;
runner.eventManager().addListener( &listener );
+#endif
// workaround for CAROB-76
std::cerr << std::endl;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits