Change from test_* prefix to @(test) attribute for odin test

This commit is contained in:
gingerBill
2021-03-14 18:43:21 +00:00
parent db0ac2ba98
commit f5142aaec4
6 changed files with 22 additions and 18 deletions
+3 -5
View File
@@ -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;
}
}