{
  "id": 9687190,
  "title": "A Check With a Zero Denominator Reports Clean",
  "url": "https://urgent.news/2026/09/25/a-check-with-a-zero-denominator-reports-clean",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-25T03:00:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/megapixel99/a-check-with-a-zero-denominator-reports-clean-kj6"
  },
  "original_language": "en",
  "account": "The article discusses a package called zerocase that handles test reports. It explains that testsuites with zero or empty reports can exit with a 0 status code and still be considered passing. The key distinction made by zerocase is in the report's total and executed counts, rather than exit codes. A suite with no tests or tests that only skipped is still considered passing as long as the executed count meets the minimum requirement. The package provides parsers for various report formats like JUnit XML, TAP, LCOV, Cobertura, and ESLint JSON, which return the total and executed counts. If a test case carries both a skip and a failure, it is not counted as having failed. The article also mentions a mutation test suite that applied 13 mutations to the codebase and caught all of them. It highlights how zerocase's approach avoids common issues like a suite appearing to have failed while actually passing due to a zero exit code or similar discrepancies in reports.",
  "summary": "Code: Megapixel99/zerocase A suite whose every test was skipped, a lint whose glob matched nothing, and a coverage run over no statements can all exit 0. Every one of them has already written the real number down in a file with a field name on it. zerocase wraps a command, reads the machine-readable report the runner wrote, and refuses the run when nothing in the report actually executed: pip…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}