tfel
Loading...
Searching...
No Matches
tfel::check::PCJUnitDriver Struct Reference

class in charg of build XML report for JUnit. More...

#include </home/runner/work/tfel/tfel/tfel-check/include/TFEL/Check/PCJUnitDriver.hxx>

Inheritance diagram for tfel::check::PCJUnitDriver:
tfel::check::PCILogDriver

Public Member Functions

 PCJUnitDriver (const std::string &f="")
void addMessage (const std::string &) override
 Append a message to log. Append a message to log (to be implemented by inherited class).
void addTestResult (const std::string &, const std::string &, const std::string &, const float, const bool, const std::string &="") override
 add a test result to log. Append a test result to log (to be implemented by inherited class).
void reportSkippedTest (const std::string &) override
 report that a test has been skipped
void terminate () override
 terminate driver use.
 ~PCJUnitDriver () override
 destructor
Public Member Functions inherited from tfel::check::PCILogDriver
 PCILogDriver ()
 constructor
 PCILogDriver (std::ostream &)
 constructor
 PCILogDriver (const std::string &)
 constructor
 PCILogDriver (PCILogDriver &&) noexcept
 move constructor
 PCILogDriver (const PCILogDriver &)
 copy constructor
virtual ~PCILogDriver ()
 destructor

Additional Inherited Members

Protected Member Functions inherited from tfel::check::PCILogDriver
std::ostream & getStream ()
 get current ostream

Detailed Description

class in charg of build XML report for JUnit.

Member Function Documentation

◆ addMessage()

void tfel::check::PCJUnitDriver::addMessage ( const std::string & )
overridevirtual

Append a message to log. Append a message to log (to be implemented by inherited class).

Parameters
[in]messagea message to send to log.

Implements tfel::check::PCILogDriver.

◆ addTestResult()

void tfel::check::PCJUnitDriver::addTestResult ( const std::string & testname,
const std::string & step,
const std::string & command,
const float time,
const bool success,
const std::string & message = "" )
overridevirtual

add a test result to log. Append a test result to log (to be implemented by inherited class).

Parameters
testnamea string message explaining the test
stepa string describing the current step
commanda string describing the test command
timea float, test time execution
successa bool test success
messagea string message explaining the test result

Implements tfel::check::PCILogDriver.

◆ reportSkippedTest()

void tfel::check::PCJUnitDriver::reportSkippedTest ( const std::string & )
overridevirtual

report that a test has been skipped

Parameters
[in]ddescription of the test

Implements tfel::check::PCILogDriver.

◆ terminate()

void tfel::check::PCJUnitDriver::terminate ( )
overridevirtual

terminate driver use.

declare end of use of driver to properly close driver (to be overloaded by inherited class if necessary).

Reimplemented from tfel::check::PCILogDriver.


The documentation for this struct was generated from the following file: