r/cicd • u/Constant-Nerve-503 • 11h ago
I built a CLI that catches green CI runs where zero tests ran
A green CI check tells me the job succeeded. I still want to know whether it ran the tests I expected.
I built testfix-ci, an open-source Node.js CLI that compares the jobs, steps, and minimum test counts you declare against records from a specific CI run. It runs offline using the evidence you provide.
The video shows two cases I tested with the published package and its bundled Vitest examples:
- The runner exited
0with zero tests. The contract required at least one, so the CLI flagged missing verification. - The JSON report showed a passing test, but the runner exited
1**.** The CLI used the recorded process exit and flagged a failure.
I’d love a technical review of the contract and evidence model. If you’ve dealt with flaky CI or misleading green checks, what failure mode would you add? I’m especially curious how you’d handle partial evidence from reruns or matrix jobs.