What are the key differences between the unit testing frameworks GUT and WAT?

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

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?


:bust_in_silhouette: Reply From: Hasnep

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.

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

structed | 2022-04-07 00:25