diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-14 18:43:21 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-14 18:43:21 +0000 |
| commit | f5142aaec41edbb85f9306216c6b199fa5adb7bb (patch) | |
| tree | bf1eb80ce88441d9bde998c9d4b879f7a7d0965c /core/testing | |
| parent | db0ac2ba984a4b395a6dfba8fcb7ab128ad96f19 (diff) | |
Change from `test_*` prefix to `@(test)` attribute for `odin test`
Diffstat (limited to 'core/testing')
| -rw-r--r-- | core/testing/runner.odin | 8 |
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; } } |