Open rsubtil opened 1 year ago
One good use case for unit testing is ensuring UI focus scenarios don't break randomly, which is something that constantly does.
Therefore this now takes some priority, thus it no longer belongs in the backlog. Like previously said, GUT and gdUnit4 seem to be the big ones right now, so which one to use should be investigated and pondered now.
As there's two prominent frameworks, and unit testing is crucial to ensure good UX, I'll be testing the workflow on both and grading them in different categories:
After testing both GUT
and gdUnit4
, here are some notes I've gathered:
gdUnit4
has a slightly more straightforward CLI interface
gdUnit4
follows a more strictly typed approach, thus it's easier to read what a given test is testing for.GUT
allows for inner classes, which makes for more contained unit test files when compared to gdUnit4
.
gdUnit4
was easier to setup and has better wrappers for this scenario.GUT
supports actions, while gdUnit4
only supports raw key/mouse input events.There isn't much difference in feature-set, but gdUnit4
has some QoL decisions that I like, so we'll use this one.
Unit testing will massively help in ensuring no internal behavior breaks, and it can be used to test many scenarios, such as saving game data, scraping, setting configurations, etc...
Frameworks available: gut and GdUnit3