Added PRINT_SUCCESSFUL_TESTS flag
This commit is contained in:
parent
74d53b3a8d
commit
f52ea00c34
|
|
@ -10,6 +10,8 @@
|
|||
#include "sls/errors.h"
|
||||
#include "tests/tests.h"
|
||||
|
||||
static const Boolean PRINT_SUCCESSFUL_TESTS = FALSE;
|
||||
|
||||
const SlsStr TEST_FILE_NAME = SLS_STR("TEST_FILE.SLS");
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -50,6 +52,7 @@ static void test_report(TestsReport reports, TestCounts *counts) {
|
|||
break;
|
||||
case TEST_PASS:
|
||||
// Green
|
||||
if (PRINT_SUCCESSFUL_TESTS)
|
||||
printf("\x1b[32mTest passed: %s\n\x1b[0m", reports.tests[i].name.str);
|
||||
counts->passed += 1;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue