outputFile.close();
}
+void SummaryCollector::CollectResult(const std::string& /*id*/,
+ const std::string& /*description*/,
+ const FailStatus::Type status,
+ const std::string& /*reason = ""*/,
+ const bool& isPerformanceTest,
+ const std::chrono::system_clock::duration& performanceTime,
+ const std::chrono::system_clock::duration& performanceMaxTime)
+{
+ (void)isPerformanceTest;
+ (void)performanceTime;
+ (void)performanceMaxTime;
+ switch (status) {
+ case FailStatus::IGNORED: ++m_ignored; break;
+ case FailStatus::INTERNAL: // internal error count as fail
+ case FailStatus::FAILED: ++m_failed; break;
+ case FailStatus::NONE: ++m_succeeded; break;
+ };
+ ++m_total;
+}
+
void SummaryCollector::CollectResult(const std::string& /*id*/,
const std::string& /*description*/,
const FailStatus::Type status,
#define _RAW_RESULTS_COLLECTOR_H_
#include <dpl/test/test_results_collector.h>
+#include <chrono>
/*
* Custom test runner results collector. The results (total test cases, failed, etc.) are
const std::string& /*description*/,
const FailStatus::Type status,
const std::string& /*reason = ""*/);
+ void CollectResult(const std::string& /*id*/,
+ const std::string& /*description*/,
+ const FailStatus::Type status,
+ const std::string& /*reason = ""*/,
+ const bool& isPerformanceTest = false,
+ const std::chrono::system_clock::duration&
+ performanceTime = std::chrono::microseconds::zero(),
+ const std::chrono::system_clock::duration&
+ performanceMaxTime = std::chrono::microseconds::zero());
public:
static TestResultsCollectorBase* Constructor();