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.

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.