Unit Testing Setup?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Daimeng Chen

How do people have Unit Testing set up for C#?

Godot Mono seems to crash on windows if I add a Testing subproject to the solution.
It doesn’t crash on Mac though.

If I add NUnit Tests directly to the existing project, the runner can’t seem to find the tests.

How are other people setting this up?

:bust_in_silhouette: Reply From: Haew

Follow this: Tests unitaires C# – Tutoriel - Visual Studio (Windows) | Microsoft Learn

And add the two .dll you can find in root://.mono/assemblies as dependencies of your test project. It should work correctly.

here’s the version that isn’t from france C# unit test tutorial - Visual Studio (Windows) | Microsoft Learn

BenMcLean | 2021-02-18 15:17

:bust_in_silhouette: Reply From: van800

See https://github.com/godotengine/godot-proposals/issues/432