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

#include <catch_reporter_tap.hpp>

Inheritance diagram for Catch::TAPReporter:
Collaboration diagram for Catch::TAPReporter:

Public Member Functions

 ~TAPReporter () override
 
ReporterPreferences getPreferences () const override
 
void noMatchingTestCases (std::string const &spec) override
 
void assertionStarting (AssertionInfo const &) override
 
bool assertionEnded (AssertionStats const &_assertionStats) override
 
void testRunEnded (TestRunStats const &_testRunStats) override
 
 ~TAPReporter () override
 
ReporterPreferences getPreferences () const override
 
void noMatchingTestCases (std::string const &spec) override
 
void assertionStarting (AssertionInfo const &) override
 
bool assertionEnded (AssertionStats const &_assertionStats) override
 
void testRunEnded (TestRunStats const &_testRunStats) override
 
 StreamingReporterBase (ReporterConfig const &_config)
 
- Public Member Functions inherited from Catch::StreamingReporterBase< TAPReporter >
 StreamingReporterBase (ReporterConfig const &_config)
 
 ~StreamingReporterBase () override=default
 
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 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< TAPReporter >
static std::set< VerbositygetSupportedVerbosities ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 22 of file catch_reporter_tap.hpp.

Constructor & Destructor Documentation

◆ ~TAPReporter() [1/2]

Catch::TAPReporter::~TAPReporter ( )
override

◆ ~TAPReporter() [2/2]

Catch::TAPReporter::~TAPReporter ( )
override

Member Function Documentation

◆ assertionEnded() [1/2]

bool Catch::TAPReporter::assertionEnded ( AssertionStats const & _assertionStats)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 42 of file catch_reporter_tap.hpp.

42 {
43 ++counter;
44
45 stream << "# " << currentTestCaseInfo->name << std::endl;
46 AssertionPrinter printer( stream, _assertionStats, counter );
47 printer.print();
48
49 stream << std::endl;
50 return true;
51 }

◆ assertionEnded() [2/2]

bool Catch::TAPReporter::assertionEnded ( AssertionStats const & _assertionStats)
inlineoverridevirtual

Implements Catch::IStreamingReporter.

Definition at line 42 of file catch_reporter_tap.hpp.

42 {
43 ++counter;
44
45 stream << "# " << currentTestCaseInfo->name << std::endl;
46 AssertionPrinter printer( stream, _assertionStats, counter );
47 printer.print();
48
49 stream << std::endl;
50 return true;
51 }

◆ assertionStarting() [1/2]

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

Implements Catch::IStreamingReporter.

Definition at line 40 of file catch_reporter_tap.hpp.

40{}

◆ assertionStarting() [2/2]

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

Implements Catch::IStreamingReporter.

Definition at line 40 of file catch_reporter_tap.hpp.

40{}

◆ getDescription() [1/2]

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

Definition at line 28 of file catch_reporter_tap.hpp.

28 {
29 return "Reports test results in TAP format, suitable for test harnesses";
30 }

◆ getDescription() [2/2]

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

Definition at line 28 of file catch_reporter_tap.hpp.

28 {
29 return "Reports test results in TAP format, suitable for test harnesses";
30 }

◆ getPreferences() [1/2]

ReporterPreferences Catch::TAPReporter::getPreferences ( ) const
inlineoverridevirtual

Reimplemented from Catch::StreamingReporterBase< TAPReporter >.

Definition at line 32 of file catch_reporter_tap.hpp.

32 {
33 return m_reporterPrefs;
34 }

◆ getPreferences() [2/2]

ReporterPreferences Catch::TAPReporter::getPreferences ( ) const
inlineoverridevirtual

Reimplemented from Catch::StreamingReporterBase< TAPReporter >.

Definition at line 32 of file catch_reporter_tap.hpp.

32 {
33 return m_reporterPrefs;
34 }

◆ noMatchingTestCases() [1/2]

void Catch::TAPReporter::noMatchingTestCases ( std::string const & spec)
inlineoverridevirtual

Reimplemented from Catch::StreamingReporterBase< TAPReporter >.

Definition at line 36 of file catch_reporter_tap.hpp.

36 {
37 stream << "# No test cases matched '" << spec << "'" << std::endl;
38 }

◆ noMatchingTestCases() [2/2]

void Catch::TAPReporter::noMatchingTestCases ( std::string const & spec)
inlineoverridevirtual

Reimplemented from Catch::StreamingReporterBase< TAPReporter >.

Definition at line 36 of file catch_reporter_tap.hpp.

36 {
37 stream << "# No test cases matched '" << spec << "'" << std::endl;
38 }

◆ StreamingReporterBase()

Catch::StreamingReporterBase< DerivedT >::StreamingReporterBase ( ReporterConfig const & _config)
inline

Definition at line 33 of file catch_reporter_bases.hpp.

34 : m_config( _config.fullConfig() ),
35 stream( _config.stream() )
36 {
38 if( !DerivedT::getSupportedVerbosities().count( m_config->verbosity() ) )
39 CATCH_ERROR( "Verbosity level not supported by this reporter" );
40 }
#define CATCH_ERROR(msg)
int * count

◆ testRunEnded() [1/2]

void Catch::TAPReporter::testRunEnded ( TestRunStats const & _testRunStats)
inlineoverridevirtual

Reimplemented from Catch::StreamingReporterBase< TAPReporter >.

Definition at line 53 of file catch_reporter_tap.hpp.

53 {
54 printTotals( _testRunStats.totals );
55 stream << "\n" << std::endl;
57 }
void testRunEnded(TestRunStats const &) override
Here is the call graph for this function:

◆ testRunEnded() [2/2]

void Catch::TAPReporter::testRunEnded ( TestRunStats const & _testRunStats)
inlineoverridevirtual

Reimplemented from Catch::StreamingReporterBase< TAPReporter >.

Definition at line 53 of file catch_reporter_tap.hpp.

53 {
54 printTotals( _testRunStats.totals );
55 stream << "\n" << std::endl;
57 }
Here is the call graph for this function:

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