+2 votes

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?

asked Feb 5, 2019 in Engine by Daimeng Chen (24 points)

1 Answer

0 votes

Follow this: https://docs.microsoft.com/fr-fr/visualstudio/test/walkthrough-creating-and-running-unit-tests-for-managed-code?view=vs-2019

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

answered Jul 30, 2019 by Haew (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.