You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Godot 4, Godot 3 if EngineDebugger.is_active() or equivalent exists
The Feature
If you have a test that would normally cause the debugger to break on an error, you can skip the test if the debugger is enabled with the following code.
func test_something_when_debugger_disabled():
if(EngineDebugger.is_active()):
pending("Test skipped, disable debug to run test")
return
...
The text was updated successfully, but these errors were encountered:
I'm not sure if there is a way to run tests through the editor without having debug enabled. The above method works fine when running from the command line/vscode with or without -d flag. Currently GUT uses EditorInterface.play_custom_scene to run tests. This appears to always have the debugger enabled.
Versions
Godot 4, Godot 3 if
EngineDebugger.is_active()
or equivalent existsThe Feature
If you have a test that would normally cause the debugger to break on an error, you can skip the test if the debugger is enabled with the following code.
The text was updated successfully, but these errors were encountered: