Skip to content

Fail tests if script error happens in Command Line Tool #250

Answered by MikeSchulze
Krigu asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, I am back from vacation therefore the late answer.

The script ./addons/gdUnit4/runtest.sh runs the Godot engine with the debug option -d, which leads to the described "breakpoint" in case of a script syntax or runtime error.

There is no need to use the provided script ;)
Just as well you can call the tool manually in your CI script and adjust it to the desired options.

e.g. remove the -d option, but than you will get no error line information for failing tests (Godot provides stacktrace info only on debug mode)
$GODOT_BIN --path . -s ./addons/gdUnit4/bin/GdUnitCmdTool.gd -a tests/gdunit/

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MikeSchulze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed question Further information is requested
2 participants