Testing: parallel auto mode, aligned timings and slowest/failure summaries
This commit is contained in:
1 parent
af8757080f
commit
7f861fa78f
3 files changed
+43
-10
No files matched your search
@@ -2,6 +2,9 @@
|
||||
#include <Void/Testing/Reporter.hpp>
|
||||
#include <Void/Testing/Detail/Color.hpp>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
namespace Void::Testing {
|
||||
class ConsoleReporter final : public Reporter {
|
||||
@@ -17,6 +20,8 @@ public:
|
||||
void on_run_end(const RunResult& result) override;
|
||||
private:
|
||||
std::ostream& os_;
|
||||
std::vector<std::pair<double, std::string>> timings_;
|
||||
std::vector<std::string> failures_;
|
||||
void print_assertion_failure(const AssertionResult& ar);
|
||||
void print_crash_info(const TestResult& result);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user