Blog

Tested guides from Open Red Software on Godot testing.

How to take a screenshot of a Godot scene from the command line

Why headless mode can't capture a screenshot in Godot 4.7, and a tested script that saves a scene as a PNG on Linux with Xvfb, including in Docker.

How to run Godot unit tests from the command line with GUT and GdUnit4

Tested headless commands for GUT and GdUnit4 on Godot 4.7, their exit codes and reports, and the three cases where a CI job passes although no test ran.

How to simulate keyboard and mouse input in Godot tests

Runnable GUT and GdUnit4 examples for keyboard events, input actions and mouse clicks, tested headless on Godot 4.7.2.