aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-03-14 18:43:21 +0000
committergingerBill <bill@gingerbill.org>2021-03-14 18:43:21 +0000
commitf5142aaec41edbb85f9306216c6b199fa5adb7bb (patch)
treebf1eb80ce88441d9bde998c9d4b879f7a7d0965c /core
parentdb0ac2ba984a4b395a6dfba8fcb7ab128ad96f19 (diff)
Change from `test_*` prefix to `@(test)` attribute for `odin test`
Diffstat (limited to 'core')
-rw-r--r--core/testing/runner.odin8
1 files changed, 3 insertions, 5 deletions
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;
}
}