Definition at line 10 of file main.cpp.
◆ testCaseEnded()
void LoggingListener::testCaseEnded |
( |
IRSOL_MAYBE_UNUSED Catch::TestCaseStats const & |
testCaseStats | ) |
|
|
inlineoverride |
Definition at line 43 of file main.cpp.
44 {
46 }
#define IRSOL_LOG_INFO(...)
Logs an info-level message using the default logger.
◆ testCaseStarting()
void LoggingListener::testCaseStarting |
( |
Catch::TestCaseInfo const & |
testInfo | ) |
|
|
inlineoverride |
Definition at line 27 of file main.cpp.
28 {
29 std::string testCaseDescription = "";
30 for(const auto& tag : testInfo.tags) {
31 testCaseDescription += tag.original + "][";
32 }
33 if(!testCaseDescription.empty()) {
34 testCaseDescription.pop_back();
35 testCaseDescription += "[" + testInfo.name;
36 } else {
37 testCaseDescription = testInfo.name;
38 }
39
41 IRSOL_LOG_INFO(
"Starting testcase: {}-{}.", testInfo.tagsAsString(), testInfo.name);
42 }
void setLoggerName(const char *name)
Sets the name of the default logger.
◆ testRunEnded()
void LoggingListener::testRunEnded |
( |
IRSOL_MAYBE_UNUSED Catch::TestRunStats const & |
testRunStats | ) |
|
|
inlineoverride |
◆ testRunStarting()
void LoggingListener::testRunStarting |
( |
IRSOL_MAYBE_UNUSED Catch::TestRunInfo const & |
testRunInfo | ) |
|
|
inlineoverride |
Definition at line 15 of file main.cpp.
16 {
20 }
void setLoggingFormat(LoggingFormat format=LoggingFormat::FILE, std::optional< std::shared_ptr< spdlog::logger > > logger=std::nullopt)
Sets the global logging format.
@ UNIT_TESTS
Format suitable for unit test frameworks.
The documentation for this class was generated from the following file: