← Devlog

Testing a game with 26,000 checks (and a bot that plays the bosses)

Music theory has no room for "close enough". How automated tests keep every interval, chord and translation in tune.

A wrong answer key in an ear-training game is worse than a crash: the player learns the wrong thing and trusts it. That's why Trítono has a pretty serious test suite for a small indie game.

The test runner

A headless runner in Godot checks the pure logic, without opening a single screen:

  • Music theory: every interval, chord, scale, degree and progression is built correctly, in every key.
  • Question generator: answer options are always unique, notes stay inside the piano's range, and the A/B comparison plays what it promises.
  • Beginner categories: "higher or lower" and the melody shapes always point the right way.
  • Map generator: every node of every map is reachable.
  • Content: every sprite, icon and sample exists, every enemy has lines, every string is translated and every glyph exists in the pixel font.

Since version 0.2, that adds up to more than 26,000 checks per run.

The bot that plays the bosses

There's also a smoke test that plays battles on its own: every consumable, every elite and every boss of all 5 acts, in about four minutes. It's not a fun player, but it never gets tired and it finds the combination of relics that breaks the game before you do.

The best bug report is the one no player ever has to send.