Development

On this page

Commands #

CommandWhat it does
make testunit tests
make e2ebuilds gomagi and runs the atago specs in e2e/atago
make lintgolangci-lint, complexity limits, architecture rules, go mod tidy -diff and go tool harai
make coveragecoverage of the unit tests and the E2E specs together
make mutationgomagi on its own packages
make demorecords the demo GIF with vhs
make websitebuilds this site with Hugo

go tool harai fails on a function no command reaches, on statements repeated elsewhere and on a test file named after no source file. AGENTS.md holds the rules of the code base.

Testing #

The README lists the testing techniques and the bugs each one catches, with links to the tests.

Third-party modules #

gomagi runs with --verify 20 on 17 pinned modules on every push to main and weekly on Linux, 14 of them on macOS and 13 on Windows (e2e/thirdparty), and 56 more were run by hand in December 2026. A module passes when gomagi finishes, every verified mutant agrees with its separate build, the clone is unchanged and no test process is left. What they found, all fixed in gomagi:

ModuleProblemFixed in
sergi/go-diff, BurntSushi/toml, golang/snappythe rewritten package did not compile0.1.1
spf13/cobra, go-chi/chitests reading os.Args[0] or a fixed port killed mutants0.1.1
gorilla/websockettests failing 1 run in 30 without a mutant killed mutants0.1.5
tidwall/prettya long but finite scan counted as an endless loop0.1.5
dustin/go-humanize--cache stored nothing when a mutant made a test panic0.1.5
robfig/cronsuites that sleep held whole workers0.1.5
nao1215/sqlya rapid property’s verdict changed between runs0.1.7
rivo/uniseg358 mutants were compiled one at a time0.1.7
zeebo/xxh3, buger/jsonparserthe switched binary ran 13 to 19 times slower than the original0.1.7