5#include <string_format.h>
12 void report_start()
override {}
14 void report_suite_begin(
unsigned int specCount)
override {}
25 auto fullDescription = string_format(
30 switch (result->
status()) {
40 if (
auto* message = result->
message())
67 if (result->
failed() > 0) output += string_format(
"{} failed", result->
failed());
69 if (result->
passed() > 0) {
70 if (!output.empty()) output +=
", ";
71 output += string_format(
"{} passed", result->
passed());
75 if (!output.empty()) output +=
", ";
76 output += string_format(
"{} not run", result->
not_run());
void PrintColor(std::string_view text, Color foreground=Color::None, Color background=Color::None, Unix::Style style=Unix::Style::Normal)
virtual const char * full_description() const =0
virtual const char * description() const =0
virtual RunResultStatus status() const =0
virtual ISpecGroup * group() const =0
virtual ISpec * spec() const =0
virtual const char * message() const =0
virtual std::uint32_t not_run() const =0
virtual std::uint32_t failed() const =0
virtual std::uint32_t passed() const =0