This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+5 votes

I want to start unit testing my project but don't know which unit testing framework to use.

The two main ones seem to be GUT and WAT.

Can someone who has some experience with both give any key differences?


in Engine by (61 points)

1 Answer

+6 votes
Best answer

Since asking this question I have tried both GUT and WAT and have settled on WAT.

The key differences I noticed are:

  • GUT shows the test results in a separate game window
  • WAT shows the test results in a panel that's integrated into the Godot editor
  • GUT has a VSCode extension to run the tests
  • Both GUT and WAT have the ability to run tests from the command line
  • WAT has a C# version

Either will work fine for any GDScript project, I just chose WAT because I liked the integrated UI and I needed C# support.

by (61 points)

GUT does also have a an option of running through an Editor panel since version 7.2.0

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.