From f5142aaec41edbb85f9306216c6b199fa5adb7bb Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 14 Mar 2021 18:43:21 +0000 Subject: Change from `test_*` prefix to `@(test)` attribute for `odin test` --- core/testing/runner.odin | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'core/testing') diff --git a/core/testing/runner.odin b/core/testing/runner.odin index 3acd25aca..efeaa04f6 100644 --- a/core/testing/runner.odin +++ b/core/testing/runner.odin @@ -48,14 +48,12 @@ runner :: proc(internal_tests: []Internal_Test) -> bool { reset_t(t); defer end_t(t); - name := strings.trim_prefix(it.name, "test_"); - if prev_pkg != it.pkg { prev_pkg = it.pkg; logf(t, "[Package: %s]", it.pkg); } - logf(t, "[Test: %s]", name); + logf(t, "[Test: %s]", it.name); // TODO(bill): Catch panics { @@ -63,9 +61,9 @@ runner :: proc(internal_tests: []Internal_Test) -> bool { } if t.error_count != 0 { - logf(t, "[%s : FAILURE]", name); + logf(t, "[%s : FAILURE]", it.name); } else { - logf(t, "[%s : SUCCESS]", name); + logf(t, "[%s : SUCCESS]", it.name); total_success_count += 1; } } -- cgit v1.2.3