FlakeGuard
find your flaky tests before CI does
npx -y github:Isco0819/flakeguardEver run into this?
AI agents generate hundreds of tests, but many silently flicker — passing locally while failing in CI due to timing or state leaks. BuildPulse and Trunk (both funded) solve this for enterprise but require paid accounts and CI pipeline setup. There is no free zero-config local CLI that surfaces flaky tests in under 60 seconds.
The fix
npx flakeguard reruns your test suite N times, diffs per-test pass/fail across runs, and prints a ranked flakiness score table — no account, no config file, works with Jest, Vitest, and pytest out of the box.
What it does
- Auto-detects test runner from package.json scripts or pyproject.toml
- Reruns suite N times and reports flakiness score per test (fails/total runs)
- Optional --mcp flag starts an MCP server exposing get_flaky_tests() so AI agents can self-audit tests they wrote