Skip to content

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 08 Nov 19:15
· 18 commits to main since this release
bf611f7

What's Changed

This release makes parallel runs faster and more accurate, and lets you skip slow GdUnit4 tests. Three of these changes come from @normanthesquid. Thank you.

Before you upgrade

--jobs N now runs your tests in an empty user:// (the folder Godot keeps a game's saved data in). If your tests rely on files already sitting in your real user://, the run now stops with a message. Have the tests create those files, or use --jobs 1. (#318)

Parallel runs (--jobs N, which tests N mutants at a time)

  • Workers are now shared across all source files, so they no longer wait between files. This change alone doesn't change any score. (#334, thanks @normanthesquid)
  • Each worker now gets its own user://, so tests that write there no longer collide. Before, that could make a mutant your tests missed count as caught, so the score could be too high. If you used --jobs N and your tests write to user://, run again to get the right score. (#318)
  • A file outside --project is now refused before any tests run, even when it has no mutants. (#346)

Skipping slow tests (GdUnit4)

  • The new --exclude-tests <entry> flag leaves tests out of a run. An entry is a suite name, part of a res:// path, or suite:test. You can also set exclude-tests in .gdmutant.toml. GUT and command runs refuse the flag, and ignore the setting with a note. (#335, thanks @normanthesquid)

Other changes

  • A test command that floods its output (--runner command) no longer runs gdmutant out of memory. (#333, thanks @normanthesquid)
  • .gdmutant.toml can now set project to its own folder, such as project = ".", without --trust-config. Any other folder still needs it. (#324)
  • The progress line now ends on the right count, and prints it once. (#345)

New Contributors

Full Changelog: v0.1.4...v0.1.5