Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'BR_PY3' of https://git.forge.pleiade.edf.fr/git/modules-salome.hydro...
[modules/hydro.git]
/
src
/
HYDRO_tests
/
TestLib_Listener.h
diff --git
a/src/HYDRO_tests/TestLib_Listener.h
b/src/HYDRO_tests/TestLib_Listener.h
index b8e125d1cc904152fdfbf972a99936185f067222..5bb456e67ac0de670e5e8a497511f233a775533c 100644
(file)
--- a/
src/HYDRO_tests/TestLib_Listener.h
+++ b/
src/HYDRO_tests/TestLib_Listener.h
@@
-19,6
+19,10
@@
#pragma once
#include <cppunit/TestListener.h>
#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
/**
\class TestLib_Listener
@@
-31,7
+35,11
@@
public:
virtual ~TestLib_Listener();
void Clear();
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 startTest( CppUnit::Test* );
virtual void endTest( CppUnit::Test* );
@@
-39,5
+47,12
@@
public:
virtual void endSuite( CppUnit::Test* );
virtual void addFailure( const CppUnit::TestFailure& );
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;
};
};