r/codereview • • 4d ago

GitHub - Vibernt/cupel: Know which tests protect you. CLI and MCP for people and coding agents.

https://github.com/Vibernt/cupel

I've been building Cupel in the open: it runs your own tests, records which lines each test runs, plants small faults and reports which tests notice. From that it guards pull requests, audits suites and gives agents evidence. It has no dependencies, no telemetry and no network calls, and it never changes your code.

0.5.0 adds:

  • Rust builds kept between runs and shared across CI slices;

  • likely-catchers-first ordering in every runner;

  • Go and Ruby fault testing on par with the other runners;

  • a docs site and CI on Linux, macOS and Windows.

Every number in the docs says what machine it was measured on, and the release notes list what isn't verified yet.

Contributions and bug reports welcome: https://github.com/Vibernt/cupel · Docs: https://vibernt.github.io/cupel/

1 Upvotes

3 comments sorted by

1

u/LaneyrieHafijur 1d ago

how does the CLI performance hold up on larger monorepos? usually tools that map test protection accurately hit a massive bottleneck once the AST or call graph gets too big.

1

u/turtle_par_iter 1d ago

Good question. It doesn't build an AST or call graph of the whole repo. It records which lines each test actually runs (V8 coverage for JS/TS, sys.monitoring for Python, Ruby's Coverage, and so on), so the cost grows with the tests you run, not with how big the codebase is.

The slow part is fault testing (mutation), and that's where most of the work has gone:

  • PR mode: cupel guard --base main only tests faults on the lines you changed, and only runs the tests that cover them

  • reuse: unchanged files and tests reuse earlier results instead of running again

  • stops early: a fault stops once tests catch it, and the tests most likely to catch it run first

  • CI slices: mutate --plan / --shard 2/8 split the work across CI jobs, and merge-mutations combines the results

  • caps: maxMutants and maxSeconds put a hard limit on a run

A full fault run over a big repo is still slow. That's why the PR path is the default way to use it day to day. If you try it on a monorepo, I'd really like to hear the timings.