#pragma once
#include <cppunit/TestListener.h>
+#include <vector>
+#include <string>
+
+typedef long long INT64; ///< the cross-platform type definition for 64-bits integer
/**
\class TestLib_Listener
virtual ~TestLib_Listener();
void Clear();
-
+ INT64 GetCompleteTimeInMS() const;
+ int GetNbTests() const;
+ int GetNbSuites() const;
+ void DumpFailures();
+
virtual void startTest( CppUnit::Test* );
virtual void endTest( CppUnit::Test* );
virtual void endSuite( CppUnit::Test* );
virtual void addFailure( const CppUnit::TestFailure& );
+
+private:
+ INT64 myStart; ///< start time in milliseconds
+ INT64 myComplete; ///< complete time of all tests execution in milliseconds
+ int myNbTests;
+ int myNbSuites;
+ std::vector<std::string> myFailures;
};