Class XmlReporter
Defined in File catch_amalgamated.hpp
Inheritance Relationships
Base Type
public Catch::StreamingReporterBase
(Class StreamingReporterBase)
Class Documentation
-
class XmlReporter : public Catch::StreamingReporterBase
Public Functions
-
XmlReporter(ReporterConfig &&_config)
-
~XmlReporter() override
-
virtual std::string getStylesheetRef() const
-
void writeSourceInfo(SourceLineInfo const &sourceInfo)
-
virtual void testRunStarting(TestRunInfo const &testInfo) override
Called once in a testing run before tests are started
Not called if tests won’t be run (e.g. only listing will happen)
-
virtual void testCaseStarting(TestCaseInfo const &testInfo) override
Called once for each TEST_CASE, no matter how many times it is entered.
-
virtual void sectionStarting(SectionInfo const §ionInfo) override
Called when a
SECTION
is being entered. Not called for skipped sections.
-
virtual void assertionStarting(AssertionInfo const&) override
Called before assertion success/failure is evaluated.
-
virtual void assertionEnded(AssertionStats const &assertionStats) override
Called after assertion was fully evaluated.
-
virtual void sectionEnded(SectionStats const §ionStats) override
Called after a
SECTION
has finished running.
-
virtual void testCaseEnded(TestCaseStats const &testCaseStats) override
Called once for each TEST_CASE, no matter how many times it is entered.
-
virtual void testRunEnded(TestRunStats const &testRunStats) override
Called once after all tests in a testing run are finished
Not called if tests weren’t run (e.g. only listings happened)
-
virtual void benchmarkPreparing(StringRef name) override
Called when user-code is being probed before the actual benchmark runs.
-
virtual void benchmarkStarting(BenchmarkInfo const&) override
Called after probe but before the user-code is being benchmarked.
-
virtual void benchmarkEnded(BenchmarkStats<> const&) override
Called with the benchmark results if benchmark successfully finishes.
-
virtual void benchmarkFailed(StringRef error) override
Called if running the benchmarks fails for any reason.
-
virtual void listReporters(std::vector<ReporterDescription> const &descriptions) override
Provides a simple default listing of reporters.
Should look roughly like the reporter listing in v2 and earlier versions of Catch2.
-
virtual void listListeners(std::vector<ListenerDescription> const &descriptions) override
Provides a simple default listing of listeners
Looks similarly to listing of reporters, but with listener type instead of reporter name.
-
virtual void listTests(std::vector<TestCaseHandle> const &tests) override
Provides a simple default listing of tests.
Should look roughly like the test listing in v2 and earlier versions of Catch2. Especially supports low-verbosity listing that mimics the old
--list-test-names-only
output.
Public Static Functions
-
static std::string getDescription()
-
XmlReporter(ReporterConfig &&_config)