aboutsummaryrefslogtreecommitdiff
path: root/core/testing/runner.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-11-01 16:11:43 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-11-01 16:11:43 +0100
commit6ea7bdbbe588a935e731f96f7d75e1c91c3238a3 (patch)
treeb880410e1d14a5eaa4bbea09c93db1e1e57fbc31 /core/testing/runner.odin
parentf0051365929886befc20cbee442496ec3eeeb5ed (diff)
Add ODIN_TEST_GO_TO_ERROR to print test fail locations in a manner friendly to go-to error in editors
Diffstat (limited to 'core/testing/runner.odin')
-rw-r--r--core/testing/runner.odin3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/testing/runner.odin b/core/testing/runner.odin
index d79b0fd7e..f913e20fd 100644
--- a/core/testing/runner.odin
+++ b/core/testing/runner.odin
@@ -63,6 +63,9 @@ LOG_STATE_CHANGES : bool : #config(ODIN_TEST_LOG_STATE_CHANGES, false)
USING_SHORT_LOGS : bool : #config(ODIN_TEST_SHORT_LOGS, false)
// Output a report of the tests to the given path.
JSON_REPORT : string : #config(ODIN_TEST_JSON_REPORT, "")
+// Print the full file path for failed test cases on a new line
+// in a way that's friendly to regex capture for an editor's "go to error".
+GO_TO_ERROR : bool : #config(ODIN_TEST_GO_TO_ERROR, false)
get_log_level :: #force_inline proc() -> runtime.Logger_Level {
when LOG_LEVEL == "debug" { return .Debug } else