Repository navigation
v0.1.0 #227
kphutt
announced in
Announcements
v0.1.0
#227
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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>=,andandor, bumps a number, deletes a statement),reruns your tests once per change, and reports the survivors — the changes your tests didn't
notice.
Highlights
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.
(
--runner gdunit4/--runner gut), or any headless test command via--runner command.--html): one file, everything inlined, marks the exact changedcharacters in your source, and explains each survivor — what's untested, why it matters, where
to start a test.
--jobs Nruns mutants in parallel, each in its own copy of the project, for a real speedup ona real codebase.
uses:YAML and posts survivorsstraight to the job summary.
--require-cleanrefuses to run over uncommitted or unconfirmed changes, and a crashmid-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 alreadyinstalled 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.
All reactions