How to show the line number where an error occurred #565
|
When I throw an error with this code, the line number coming up as N/A. What should I do? Unit Test Codeextends GdUnitTestSuite
func test_a() -> void:
assert_bool(true).is_false()gdUnitConsoleFALIED ... line <n/a>: Expecting: "false" but is 'true'Environment Details
|
Answered by
MikeSchulze
Sep 4, 2024
Replies: 1 comment 1 reply
|
You need to run the tests in debug mode. |
1 reply
Answer selected by
MikeSchulze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


You need to run the tests in debug mode.
Godot do not provide a stack trace at runtime to grab the line number.
Check the GdUnit4 documentation https://mikeschulze.github.io/gdUnit4/testing/run-tests/