Skip to content

NUnit ​

The NUnit host is a .NET test project that runs your game in a real headless Godot engine on Windows, Linux, and macOS.

Illus. Moritz Voss: a white anthro dog in a hacker hoodie and their robot dog sniffing the ground

Run these commands from your Godot project directory:

bash
dnx 2dog add --nunit
dotnet test MyGame.nunit

Start with MyGame.nunit/BasicTests.cs, then follow Testing with NUnit to write your own tests. See NUnit configuration for build settings.

Starting a new game?

Use dnx 2dog new MyGame --nunit. Choose --xunit instead for an xUnit test host.

2dog is Free and Libre Open Source under the MIT License.
2dog is not affiliated with or endorsed by the Godot Foundation.
Godot is licensed under the MIT License; the Godot logo is by Andrea Calabró under CC BY 4.0. @icons made by Voxy under the MIT License.
Continuous Integration compute graciously supported by Blacksmith.