Update of /cvsroot/cppunit/cppunit2/include/cpput
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23769/include/cpput
Modified Files:
lighttestrunner.h testinfo.h
Log Message:
* Added log support in test result output
* Removed unsued method in TestResultUpdater
* Added CppUT::log demo example.
Index: testinfo.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/include/cpput/testinfo.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** testinfo.h 10 Aug 2005 21:34:29 -0000 1.13
--- testinfo.h 11 Aug 2005 07:18:24 -0000 1.14
***************
*** 133,138 ****
virtual void addResultAssertion( const Assertion &assertion ) = 0;
-
- virtual void setTestStatus( const TestStatus &status ) = 0;
};
--- 133,136 ----
***************
*** 215,218 ****
--- 213,219 ----
void CPPUT_API log( const OpenTest::Value &log );
+ // This overload allows usage of StringConcatenator...
+ void CPPUT_API log( const CppTL::ConstString &log );
+
} // namespace CppUT
Index: lighttestrunner.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/include/cpput/lighttestrunner.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** lighttestrunner.h 8 Aug 2005 22:10:20 -0000 1.3
--- lighttestrunner.h 11 Aug 2005 07:18:24 -0000 1.4
***************
*** 28,33 ****
virtual void addResultAssertion( const Assertion &assertion );
- virtual void setTestStatus( const TestStatus &status );
-
private:
void runTest( const TestPtr &test );
--- 28,31 ----
***************
*** 36,39 ****
--- 34,44 ----
CppTL::ConstString getTestPath() const;
void reportFailure( const Assertion &failure );
+ void reportLog( const OpenTest::Value &log );
+
+ struct ResultElement
+ {
+ int index_;
+ bool isLog_;
+ };
typedef std::deque<TestPtr> Tests;
***************
*** 42,47 ****
--- 47,56 ----
TestPath testPath_;
CppTL::StringBuffer report_;
+ typedef std::deque<OpenTest::Value> Logs;
+ Logs logs_;
typedef std::deque<Assertion> Assertions;
Assertions assertions_;
+ typedef std::deque<ResultElement> ResultElements;
+ ResultElements results_;
unsigned int testRun_;
unsigned int testFailed_;
|