ADTF  3.18.4
junitoutputter.h
Go to the documentation of this file.
1 
7 #ifndef _TEST_JUNIT_INCLUDES_
8 #define _TEST_JUNIT_INCLUDES_
9 
14 {
15  protected:
16  cFilename m_strFile;
19 
20  cDOM m_oDOM;
21  cDOMElement* m_pCurrentSuite;
22  cDOMElement* m_pCurrentTest;
24 
29 
30  FILE* m_phRedirectFileHandle = nullptr;
31 
32  public:
39  cJUnitReportOutputter(const tChar* strFile, tInt nBuild, cCommandLine& oCmdLine);
41 
42  public:
47  void setFlags(int nFlags);
48 
50  void beginReport();
52  void endReport();
53 
58  void beginTester(ITester* pTester);
59 
64  void endTester(ITester* pTester);
65 
71 
77 
88  void writeResult(ITester* pTester,
89  bool bPassed,
90  const char* strExpression,
91  const char* strFile,
92  int nLine,
93  const char* strFunction,
94  const char* strMessage);
95 
96  private:
97  cString NormalizeToHTML(const cString& strInput);
98 };
99 
100 #endif
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
int tInt
type definition for signed integer value (platform and compiler dependent type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
This interface has to be implemented by the test report class.
Definition: testbench.h:90
This class is the base class of all test cases.
Definition: testbench.h:44
void writeTestFunction(tTestDoc *pDoc)
void endTester(ITester *pTester)
void setFlags(int nFlags)
cJUnitReportOutputter(const tChar *strFile, tInt nBuild, cCommandLine &oCmdLine)
int m_nOriginalStdOut
STDOUT_FILENO.
cDOMElement * m_pCurrentSuite
cDOMElement * m_pCurrentTest
tBool m_bError
error state
void beginTester(ITester *pTester)
void writeResult(ITester *pTester, bool bPassed, const char *strExpression, const char *strFile, int nLine, const char *strFunction, const char *strMessage)
void writeTestFunctionEnd(tTestDoc *pDoc)
int m_nOriginalStdErr
STDERR_FILENO.
tBool m_bRedirect
tTrue if "noredirect" from cmdLine is disabled
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
Definition: string.h:2778
This structure defines a test case.
Definition: testbench.h:16