Skip to content

Conversation

@MikeSchulze
Copy link
Collaborator

@MikeSchulze MikeSchulze commented Jan 5, 2026

Why

When pressing the "Stop" button or using keyboard shortcuts to abort a test session, the test runner is forcibly killed rather than gracefully shut down, resulting in resource leaks and improper cleanup of test hooks.

  • Using “EditorInterface.stop_playing_scene()” abruptly terminates the external Godot process, so we don't have a controlled shutdown.

What

  • We do not end the current scene with “EditorInterface.stop_playing_scene()”, but instead use a ‘gdunit_test_session_terminate’ signal to send an “RPCClientDisconnect” command to the client so that the test run is terminated properly.

@MikeSchulze MikeSchulze self-assigned this Jan 5, 2026
@MikeSchulze MikeSchulze changed the title GD-1031: Test session should properly stopped when using Stop button … GD-1031: Test session should be properly stopped when using the Stop button or shortcuts Jan 5, 2026
@MikeSchulze MikeSchulze force-pushed the GD-1031 branch 3 times, most recently from fcd3d75 to 3179378 Compare January 5, 2026 20:30
…or shortcuts

# Why
When pressing the "Stop" button or using keyboard shortcuts to abort a test session, the test runner is forcibly killed rather than gracefully shut down, resulting in resource leaks and improper cleanup of test hooks.
- Using “EditorInterface.stop_playing_scene()” abruptly terminates the external Godot process, so we don't have a controlled shutdown.

# What
- We do not end the current scene with “EditorInterface.stop_playing_scene()”, but instead use a ‘gdunit_test_session_terminate’ signal to send an “RPCClientDisconnect” command to the client so that the test run is terminated properly.
@MikeSchulze MikeSchulze merged commit 7f7b647 into master Jan 8, 2026
13 checks passed
@MikeSchulze MikeSchulze deleted the GD-1031 branch January 8, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GD-1031: Test session not properly stopped when using Stop button or shortcuts

2 participants