IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
PythonUnitTestUtils.h
Go to the documentation of this file.
1 // PythonUnitTestUtils.h:
3 // ----------------------
4 //
14 
15 #ifndef __IPSDKUNITTESTTOOLS_PYTHONUNITTESTUTILS_H__
16 #define __IPSDKUNITTESTTOOLS_PYTHONUNITTESTUTILS_H__
17 
19 #include <IPSDKUtil/BaseTypes.h>
20 
21 namespace ipsdk {
22 namespace unittest {
23 
26 
30 initUnitTest(const std::string& testName,
31  const ipUInt32 pythonMajorVersion,
32  const ipUInt32 pythonMinorVersion,
33  const boost::filesystem::path& projectRootDirectory,
34  const boost::filesystem::path& outputResultFilePath,
35  const boost::filesystem::path& unitTestLogResourceDir,
36  bool bDisplayReport);
38 
43 notifyTestSuiteStart(const std::string& testSuiteName);
44 
49 notifyTestCaseStart(const std::string& testCaseName);
50 
55 notifyTestSuccess(const std::string& testFilePath,
56  const ipUInt32 testLineIdx,
57  const std::string& testMsg);
58 
63 notifyTestWarning(const std::string& testFilePath,
64  const ipUInt32 testLineIdx,
65  const std::string& testMsg);
66 
71 notifyTestFailure(const std::string& testFilePath,
72  const ipUInt32 testLineIdx,
73  const std::string& testMsg);
74 
79 notifyTestException(const std::string& lastCheckPointFilePath,
80  const ipUInt32 lastCheckPointLineIdx,
81  const std::string& exceptionFunctionName,
82  const std::string& exceptionFilePath,
83  const ipUInt32 exceptionLineIdx,
84  const std::string& exceptionMsg);
85 
91 
97 
102 notifyTestEnd();
103 
106 
107 } // end of namespace unittest
108 } // end of namespace ipsdk
109 
110 #endif // __IPSDKUNITTESTTOOLS_PYTHONUNITTESTUTILS_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDKUNITTESTTOOLS_API void initUnitTest(const std::string &testName, const ipUInt32 pythonMajorVersion, const ipUInt32 pythonMinorVersion, const boost::filesystem::path &projectRootDirectory, const boost::filesystem::path &outputResultFilePath, const boost::filesystem::path &unitTestLogResourceDir, bool bDisplayReport)
function allowing to initialize unit test
IPSDKUNITTESTTOOLS_API void notifyTestSuiteStart(const std::string &testSuiteName)
function allowing to notify of test suite start
IPSDKUNITTESTTOOLS_API void notifyTestWarning(const std::string &testFilePath, const ipUInt32 testLineIdx, const std::string &testMsg)
function allowing to notify of warning for a given test
IPSDKUNITTESTTOOLS_API void notifyTestFailure(const std::string &testFilePath, const ipUInt32 testLineIdx, const std::string &testMsg)
function allowing to notify of failure of a given test
IPSDKUNITTESTTOOLS_API void notifyTestEnd()
function allowing to notify of test end
Base types for multiplatform compatibility.
#define IPSDKUNITTESTTOOLS_API
Import/Export macro for library IPSDKUnitTestTools.
Definition: IPSDKUnitTestToolsExports.h:27
IPSDKUNITTESTTOOLS_API void notifyTestCaseStart(const std::string &testCaseName)
function allowing to notify of test case start
Definition of import/export macro for library.
IPSDKUNITTESTTOOLS_API void notifyTestSuiteEnd()
function allowing to notify of test suite end
IPSDKUNITTESTTOOLS_API void notifyTestCaseEnd()
function allowing to notify of test case end
IPSDKUNITTESTTOOLS_API void notifyTestException(const std::string &lastCheckPointFilePath, const ipUInt32 lastCheckPointLineIdx, const std::string &exceptionFunctionName, const std::string &exceptionFilePath, const ipUInt32 exceptionLineIdx, const std::string &exceptionMsg)
function allowing to notify of exception during unit test
IPSDKUNITTESTTOOLS_API void notifyTestSuccess(const std::string &testFilePath, const ipUInt32 testLineIdx, const std::string &testMsg)
function allowing to notify of success of a given test
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53