Skip to content

Releases

v0.1.7

Choose a tag to compare

@github-actions github-actions released this 14 Nov 22:46
b210ecf

Fixes for parallel runs and noisy test output. Every change in this release is from @normanthesquid. Thank you.

  • Fixed: a mutant that floods GdUnit4 or GUT output no longer runs gdmutant out of memory. (#358)
  • Fixed: a timed-out test command now stops its child processes too, such as a Godot started by a wrapper. (#367)
  • Fixed: a temporary folder gdmutant can't delete no longer costs you the run's report. (#366)
  • Changed: --jobs workers no longer write Godot's log file. --godot-file-logging turns it back on. (#370)
  • Changed: a mutant scored error now says why in the report. (#361)
  • Changed: verified against GdUnit4 6.2.3. (#372)
  • Changed: on Linux and macOS, each test command now runs in its own session, so it keeps running if gdmutant itself is killed. (#367)

Full changelog: v0.1.6...v0.1.7

v0.1.6

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:30
38f5117

This release changes no code. It corrects the GitHub Action example on the PyPI project page.
Apart from that and the version number, the package is the same as 0.1.5.

GitHub Action example

  • The 0.1.5 PyPI page shows 0.1.4's commit labeled as v0.1.5. PyPI keeps each version's page as
    uploaded, so that page stays wrong. This release's page pins bf611f7, the real v0.1.5 commit,
    with the matching label. That action runs the same code as 0.1.6. (#360)
  • From now on, each release's page pins the release before it, with that release's own commit. A
    release cannot pin its own commit, because a commit cannot contain its own hash. (#360)

Full changelog: v0.1.5...v0.1.6

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 08 Nov 19:15
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

v0.1.4

Choose a tag to compare

@github-actions github-actions released this 04 Oct 04:22
f1178ea

What's Changed

Coverage analysis is new, and off by default (--coverage-analysis off). Two changes reach every
run anyway: gdmutant's own work per mutant is faster, and a mutant's time budget is rebuilt.

Upgrading from 0.1.3: a verdict can change

Only runs with timeouts are affected. Old budget against new, same mutants: 0 of 18 verdicts changed
on the bundled corpus across three configurations, 1 of 41 on one file of a real game project, and
no survivor anywhere became a timeout, which is what would raise a score. Compare 0.1.4 scores
against 0.1.4 scores.
ADR-0020
has the table.

Added

  • --coverage-analysis all reports a mutant on a line no test reaches as no coverage without
    running it, scored like a survivor. Needs --godot.
    (#297,
    #298)
  • --coverage-analysis per-file does that, then runs each mutant against only the test files that
    reach it. Needs --runner gdunit4 or --runner gut.
    (#299)
  • --coverage-self-check N|all sets how many of those decisions are re-run against the whole suite.
    (#298,
    #299)

Changed

  • A mutant's time budget is built from measured parts, not one multiplier on the baseline run. One
    that runs past it is re-run once before it counts as a hang, reported as reprieved. --timeout
    overrides both and turns that second run off.
    (#306)
  • The check that a mutant is still valid GDScript skips position data it never used, so gdmutant's
    own work per mutant is faster. Time inside Godot is unchanged.
    (#292)

Fixed

  • Captured child-process output is decoded as UTF-8, not the machine's code page. A whole stream
    could vanish silently, SCRIPT ERROR line included, so a mutant could get the wrong verdict. My
    stopgap was PYTHONUTF8=1, which no user of the published CLI should need.
    (#309)
  • The HTML report's "survived" filter no longer includes no coverage mutants.
    (#300)
  • The HTML report's file index counts survived and no-coverage mutants together.
    (#300)

Full Changelog: v0.1.3...v0.1.4

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 21 Sep 03:01
955fbe8

What's Changed

Upgrading from 0.1.2: expect different mutant counts and scores on the same code. Floats, hex and binary numbers now get mutants, and node paths no longer do (see Fixed). That is gdmutant measuring more accurately, not your tests getting worse.

Removed

  • --report-path and the report-path config key. gdmutant now finds the GdUnit4 or GUT report itself. Remove the flag from any script that passes it, since it is now an error. A leftover config key only prints a warning. (#267)

Changed

  • File paths use forward slashes on every operating system, in the console lines that name a mutated file and in the JSON and HTML reports' files keys. If a Windows script of yours reads those, expect src/player.gd rather than src\player.gd. A path you typed that gdmutant could not read or write is still echoed as typed. (#267, #272, #282, #283)
  • --json and --html now print the report's full path after writing it. (#267)

Added

  • gdmutant init writes a starter .gdmutant.toml, and sets runner when it finds gdUnit4 or GUT installed. It won't overwrite an existing file without --force. (#263)
  • --jobs auto picks a worker count from your CPU count, and on Linux and macOS holds off starting extra workers while the machine is busy. (#254)
  • The GitHub Action has a command input for runner: command, instead of passing the command through args. (#249)
  • The HTML report links to the project's GitHub page, and Frank, the mascot, winks. (#253)

Fixed

  • Every number is now mutated, not just whole decimal integers. Floats, hex, binary and 1_000_000-style literals used to get no mutants at all, so an untested speed, timing or threshold could never show up as a survivor. (#265)
  • The / in a node path ($Sprite2D/Label) and the % in a unique node name (%HealthBar) are no longer mutated as division and modulo. Those mutants pointed at a different node instead of changing any math. (#265)
  • A number literal over 4300 digits long no longer crashes the run. (#272)
  • A parallel run no longer announces more workers than the file has mutants. (#282)

Full Changelog: v0.1.2...v0.1.3

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 07 Aug 19:27
284f185

What's Changed

  • docs: tighten the README's GitHub Actions section (#239)
  • fix: drop the banner's explicit height so it scales proportionally on PyPI (#241)
  • fix: install from PyPI now that gdmutant is actually published there (#242)
  • release: cut 0.1.2 (#243)

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 07 Aug 06:14
46ed9cc

What's Changed

Fixed

  • --runner command now catches a Godot runtime SCRIPT ERROR and reports it as a failure, even when the exit code says otherwise. Closes a false-survivor bug. (#237, docs/decisions/0015)
  • Filled in action.yml and the CLI guide's uses: example, which still had a placeholder instead of the real v0.1.0 commit SHA. (#233)

Added

  • A "GitHub Actions" section on the README. The Action shipped in 0.1.0, it just wasn't documented until now. (#233)

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 05 Aug 04:53
0572886

Mutation testing for GDScript and Godot: find the bugs your green tests would miss.

Coverage tells you a line ran. Mutation testing tells you if a bug there would be caught: gdmutant
mutates your GDScript (flips > and >=, and and or, bumps a number, deletes a statement),
reruns your tests once per change, and reports the survivors — the changes your tests didn't
notice.

Highlights

  • AST-based GDScript mutation via gdtoolkit.
    Every mutation is re-parsed before it runs, so one that breaks GDScript's syntax is thrown out
    instead of reaching your tests and failing for the wrong reason.
  • Works with the test runner you already have: GdUnit4 and GUT as first-class peer adapters
    (--runner gdunit4 / --runner gut), or any headless test command via --runner command.
  • An offline HTML report (--html): one file, everything inlined, marks the exact changed
    characters in your source, and explains each survivor — what's untested, why it matters, where
    to start a test.
  • --jobs N runs mutants in parallel, each in its own copy of the project, for a real speedup on
    a real codebase.
  • A GitHub Action, so CI runs gdmutant from a few lines of uses: YAML and posts survivors
    straight to the job summary.
  • Safety: mutations are applied in place and restored after every mutant and on exit,
    --require-clean refuses to run over uncommitted or unconfirmed changes, and a crash
    mid-mutation never leaves a source file half-written.

Getting started

Needs Godot 4.3+ on your PATH (or --godot <full-path>), Python 3.12+, and GUT or gdUnit4 already
installed in the project you point it at. This release is verified against Godot 4.7.0, GUT 9.7.1
and gdUnit4 6.1.3.

pip install gdmutant
gdmutant run --project path/to/your/project --runner gut

The README has the full quickstart, and
the guide covers CLI
reference and CI setup. Full details on everything in this release are in
CHANGELOG.md.