static void cute_finish_test(TestReporter *reporter, const char *filename, int line, const char *message,
                                            uint32_t duration_in_milliseconds) {
    CuteMemo *memo = (CuteMemo *) reporter->memo;
    const char *name = get_current_from_breadcrumb((CgreenBreadcrumb *)reporter->breadcrumb);

    reporter_finish_test(reporter, filename, line, message, duration_in_milliseconds);
    if (memo->error_count == reporter->failures + reporter->exceptions) {
        memo->printer("#success %s, %d ms OK\n", name);
    }
}
static void cute_finish_suite(TestReporter *reporter, const char *filename, int line,
                                         uint32_t duration_in_milliseconds) {
    const char *name = get_current_from_breadcrumb((CgreenBreadcrumb *)reporter->breadcrumb);
    CuteMemo *memo = (CuteMemo *)reporter->memo;
    
    reporter_finish_test(reporter, filename, line, NULL, duration_in_milliseconds);

    memo->printer("#ending %s", name);
    if (get_breadcrumb_depth((CgreenBreadcrumb *) reporter->breadcrumb) == 0) {
        memo->printer(": %d pass%s, %d failure%s, %d exception%s, %d ms.\n",
                      reporter->passes, reporter->passes == 1 ? "" : "es",
                      reporter->failures, reporter->failures == 1 ? "" : "s",
                      reporter->exceptions, reporter->exceptions == 1 ? "" : "s",
                      duration_in_milliseconds);
    } else
        memo->printer("\n");
}
Exemplo n.º 3
0
static void text_reporter_finish(TestReporter *reporter, const char *filename,
        int line, const char *message, uint32_t duration_in_milliseconds) {
    reporter_finish_test(reporter, filename, line, message, duration_in_milliseconds);
}
Exemplo n.º 4
0
static void cdash_finish_suite(TestReporter *reporter, const char *filename, int line,
                                          uint32_t duration_in_milliseconds) {
    reporter_finish_test(reporter, filename, line, NULL, duration_in_milliseconds);
}