How to show the line number where an error occurred #565
Answered
by
MikeSchulze
joshuafolkken
asked this question in
Q&A
-
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
|
Beta Was this translation helpful? Give feedback.
Answered by
MikeSchulze
Sep 4, 2024
Replies: 1 comment 1 reply
-
You need to run the tests in debug mode. |
Beta Was this translation helpful? Give feedback.
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/