virtual void CollectTestsCasesList(const TestCaseIdList& /*list*/) {}
virtual void CollectResult(const std::string& id,
- const std::string& description,
const FailStatus status = FailStatus::NONE,
const std::string& reason = "",
const bool& isPerformanceTest = false,
virtual void CollectCurrentTestGroupName(const std::string& name);
virtual void CollectResult(const std::string& id,
- const std::string& /*description*/,
const FailStatus status = FailStatus::NONE,
const std::string& reason = "",
const bool& isPerformanceTest = true,
virtual void Start();
virtual void CollectCurrentTestGroupName(const std::string& name);
virtual void CollectResult(const std::string& id,
- const std::string& /*description*/,
const FailStatus status = FailStatus::NONE,
const std::string& reason = "",
const bool& isPerformanceTest = false,
virtual bool ParseCollectorSpecificArg(const std::string& arg);
virtual void Start();
virtual void CollectResult(const std::string& id,
- const std::string& description,
const FailStatus status = FailStatus::NONE,
const std::string& reason = "",
const bool& isPerformanceTest = false,
virtual void Start();
virtual void CollectCurrentTestGroupName(const std::string& name);
virtual void CollectResult(const std::string& id,
- const std::string& /*description*/,
const FailStatus status = FailStatus::NONE,
const std::string& reason = "",
const bool& isPerformanceTest = false,
void RunTests();
void CollectResult(const std::string& id,
- const std::string& description,
const TestResultsCollectorBase::FailStatus status
= TestResultsCollectorBase::FailStatus::NONE,
const std::string& reason = std::string(),
}
void ConsoleCollector::CollectResult(const std::string& id,
- const std::string& /*description*/,
const FailStatus status,
const std::string& reason,
const bool& isPerformanceTest,
}
void HtmlCollector::CollectResult(const std::string& id,
- const std::string& /*description*/,
const FailStatus status,
const std::string& reason,
const bool& isPerformanceTest,
}
void SummaryCollector::CollectResult(const std::string& id,
- const std::string& description,
const FailStatus status,
const std::string& reason,
const bool& isPerformanceTest,
const std::chrono::system_clock::duration& performanceMaxTime)
{
DPL_UNUSED_PARAM(id);
- DPL_UNUSED_PARAM(description);
DPL_UNUSED_PARAM(reason);
DPL_UNUSED_PARAM(isPerformanceTest);
DPL_UNUSED_PARAM(performanceTime);
}
void XmlCollector::CollectResult(const std::string& id,
- const std::string&,
const FailStatus status,
const std::string& reason,
const bool& isPerformanceTest,
} catch (const TestFailed &e) {
// Simple test failure
CollectResult(testCase.name,
- "",
TestResultsCollectorBase::FailStatus::FAILED,
e.GetMessage());
if (m_runIgnored) {
// Simple test have to be implemented
CollectResult(testCase.name,
- "",
TestResultsCollectorBase::FailStatus::IGNORED,
e.GetMessage());
}
} catch (const std::exception &) {
// std exception failure
CollectResult(testCase.name,
- "",
TestResultsCollectorBase::FailStatus::FAILED,
"std exception");
} catch (...) {
// Unknown exception failure
CollectResult(testCase.name,
- "",
TestResultsCollectorBase::FailStatus::FAILED,
"unknown exception");
}
CollectResult(testCase.name,
- "",
TestResultsCollectorBase::FailStatus::NONE,
"",
testCase.m_isPerformanceTest,
void TestRunner::CollectResult(
const std::string& id,
- const std::string& description,
const TestResultsCollectorBase::FailStatus status,
const std::string& reason,
const bool& isPerformanceTest,
[&](const TestResultsCollectors::value_type & collector)
{
collector.second->CollectResult(id,
- description,
status,
reason,
isPerformanceTest,