Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::AutomakeReporter Struct Reference

#include <catch_reporter_automake.hpp>

Inheritance diagram for Catch::AutomakeReporter:
Collaboration diagram for Catch::AutomakeReporter:

Public Member Functions

 AutomakeReporter (ReporterConfig const &_config)
 
 ~AutomakeReporter () override
 
void assertionStarting (AssertionInfo const &) override
 
bool assertionEnded (AssertionStats const &) override
 
void testCaseEnded (TestCaseStats const &_testCaseStats) override
 
void skipTest (TestCaseInfo const &testInfo) override
 
 AutomakeReporter (ReporterConfig const &_config)
 
 ~AutomakeReporter () override
 
void assertionStarting (AssertionInfo const &) override
 
bool assertionEnded (AssertionStats const &) override
 
void testCaseEnded (TestCaseStats const &_testCaseStats) override
 
void skipTest (TestCaseInfo const &testInfo) override
 
- Public Member Functions inherited from Catch::StreamingReporterBase< AutomakeReporter >
 StreamingReporterBase (ReporterConfig const &_config)
 
ReporterPreferences getPreferences () const override
 
 ~StreamingReporterBase () override=default
 
void noMatchingTestCases (std::string const &) override
 
void testRunStarting (TestRunInfo const &_testRunInfo) override
 
void testGroupStarting (GroupInfo const &_groupInfo) override
 
void testCaseStarting (TestCaseInfo const &_testInfo) override
 
void sectionStarting (SectionInfo const &_sectionInfo) override
 
void sectionEnded (SectionStats const &) override
 
void testCaseEnded (TestCaseStats const &) override
 
void testGroupEnded (TestGroupStats const &) override
 
void testRunEnded (TestRunStats const &) override
 
void skipTest (TestCaseInfo const &) override
 
- Public Member Functions inherited from Catch::IStreamingReporter
virtual ~IStreamingReporter ()=default
 
virtual void benchmarkStarting (BenchmarkInfo const &)
 
virtual void benchmarkEnded (BenchmarkStats const &)
 
virtual void fatalErrorEncountered (StringRef name)
 
virtual bool isMulti () const
 

Static Public Member Functions

static std::string getDescription ()
 
static std::string getDescription ()
 
- Static Public Member Functions inherited from Catch::StreamingReporterBase< AutomakeReporter >
static std::set< VerbositygetSupportedVerbosities ()
 

Additional Inherited Members

- Public Attributes inherited from Catch::StreamingReporterBase< AutomakeReporter >
IConfigPtr m_config
 
std::ostream & stream
 
LazyStat< TestRunInfocurrentTestRunInfo
 
LazyStat< GroupInfocurrentGroupInfo
 
LazyStat< TestCaseInfocurrentTestCaseInfo
 
std::vector< SectionInfom_sectionStack
 
ReporterPreferences m_reporterPrefs
 

Detailed Description

Definition at line 19 of file catch_reporter_automake.hpp.

Constructor & Destructor Documentation

◆ AutomakeReporter() [1/2]

Catch::AutomakeReporter::AutomakeReporter ( ReporterConfig const & _config)
inline

Definition at line 20 of file catch_reporter_automake.hpp.

21 : StreamingReporterBase( _config )
22 {}

◆ ~AutomakeReporter() [1/2]

Catch::AutomakeReporter::~AutomakeReporter ( )
override

◆ AutomakeReporter() [2/2]

Catch::AutomakeReporter::AutomakeReporter ( ReporterConfig const & _config)
inline

Definition at line 20 of file catch_reporter_automake.hpp.

21 : StreamingReporterBase( _config )
22 {}

◆ ~AutomakeReporter() [2/2]

Catch::AutomakeReporter::~AutomakeReporter ( )
override

Member Function Documentation

◆ assertionEnded() [1/2]

bool Catch::AutomakeReporter::assertionEnded ( AssertionStats const & )
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 32 of file catch_reporter_automake.hpp.

32{ return true; }

◆ assertionEnded() [2/2]

bool Catch::AutomakeReporter::assertionEnded ( AssertionStats const & )
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 32 of file catch_reporter_automake.hpp.

32{ return true; }

◆ assertionStarting() [1/2]

void Catch::AutomakeReporter::assertionStarting ( AssertionInfo const & )
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 30 of file catch_reporter_automake.hpp.

30{}

◆ assertionStarting() [2/2]

void Catch::AutomakeReporter::assertionStarting ( AssertionInfo const & )
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 30 of file catch_reporter_automake.hpp.

30{}

◆ getDescription() [1/2]

static std::string Catch::AutomakeReporter::getDescription ( )
inlinestatic

Definition at line 26 of file catch_reporter_automake.hpp.

26 {
27 return "Reports test results in the format of Automake .trs files";
28 }

◆ getDescription() [2/2]

static std::string Catch::AutomakeReporter::getDescription ( )
inlinestatic

Definition at line 26 of file catch_reporter_automake.hpp.

26 {
27 return "Reports test results in the format of Automake .trs files";
28 }

◆ skipTest() [1/2]

void Catch::AutomakeReporter::skipTest ( TestCaseInfo const & testInfo)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 48 of file catch_reporter_automake.hpp.

48 {
49 stream << ":test-result: SKIP " << testInfo.name << '\n';
50 }

◆ skipTest() [2/2]

void Catch::AutomakeReporter::skipTest ( TestCaseInfo const & testInfo)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 48 of file catch_reporter_automake.hpp.

48 {
49 stream << ":test-result: SKIP " << testInfo.name << '\n';
50 }

◆ testCaseEnded() [1/2]

void Catch::AutomakeReporter::testCaseEnded ( TestCaseStats const & _testCaseStats)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 34 of file catch_reporter_automake.hpp.

34 {
35 // Possible values to emit are PASS, XFAIL, SKIP, FAIL, XPASS and ERROR.
36 stream << ":test-result: ";
37 if (_testCaseStats.totals.assertions.allPassed()) {
38 stream << "PASS";
39 } else if (_testCaseStats.totals.assertions.allOk()) {
40 stream << "XFAIL";
41 } else {
42 stream << "FAIL";
43 }
44 stream << ' ' << _testCaseStats.testInfo.name << '\n';
46 }
void testCaseEnded(TestCaseStats const &) override
Here is the call graph for this function:

◆ testCaseEnded() [2/2]

void Catch::AutomakeReporter::testCaseEnded ( TestCaseStats const & _testCaseStats)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 34 of file catch_reporter_automake.hpp.

34 {
35 // Possible values to emit are PASS, XFAIL, SKIP, FAIL, XPASS and ERROR.
36 stream << ":test-result: ";
37 if (_testCaseStats.totals.assertions.allPassed()) {
38 stream << "PASS";
39 } else if (_testCaseStats.totals.assertions.allOk()) {
40 stream << "XFAIL";
41 } else {
42 stream << "FAIL";
43 }
44 stream << ' ' << _testCaseStats.testInfo.name << '\n';
46 }
Here is the call graph for this function:

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