
Mutation testing for Go, fast enough for every pull request
gomagi changes one operator of your Go code at a time, < to <= or + to -, runs your tests against each change, and reports the changes no test noticed. Each such change, a lived mutant, points at a line whose behavior your tests do not pin down.

go install github.com/nao1215/gomagi/cmd/gomagi@latest
gomagi run ./...
A dot is a mutant some test killed, L one that lived and T one that ran until its time limit. The lived mutants are listed with their file, line and change after the run.
gomagi is built to run on pull requests. One test binary per package holds every mutant behind a run-time switch, so a package compiles once instead of once per mutant, and each mutant runs only the tests whose coverage reaches its line, fastest first. How it works shows the steps.
- Install the command, or set it up in GitHub Actions.
- Getting started walks through a first run and what to do with a lived mutant.
- Command line lists the flags, the exit codes and the report formats.