{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "supercorp-ai-supercov--write-first-missing-test",
 "repo": "supercorp-ai/supercov",
 "repo_url": "https://github.com/supercorp-ai/supercov",
 "repo_slug": "supercorp-ai-supercov",
 "title": "Write the first test for uncovered code",
 "page_title": "How to write the first test for uncovered code with Supercov",
 "summary": "Find one uncovered path in your suite and add a focused test that proves coverage improved.",
 "who": "A developer or coding agent working in a repo whose test suite passes but leaves some code paths untested.",
 "problem": "Coverage numbers do not say which test to write next, and a large HTML report is hard to read or hand to an agent.",
 "outcome": "One new test that covers a named gap, with a before and after comparison showing what the new test covered.",
 "steps": [
  "Run `npx supercov -- npm test` in the repository root to run the real suite under Supercov.",
  "Run `npx supercov runs latest gaps --limit 5` to list the files that still have unresolved coverage obligations.",
  "Write one focused test for a single gap, changing only test files and not application code.",
  "Run `npx supercov -- npm test` again so the complete suite is measured with the new test.",
  "Run `npx supercov diff latest` to confirm exactly what the new test covered. (inferred, check the README)"
 ],
 "agent_prompt": "Use Supercov on the supercov repo's target project at <project path>. Choose one uncovered file from `npx supercov runs latest gaps --limit 5`, add one focused test in the test directory only, and rerun the full suite through `npx supercov -- <test command>`. Report the output of `npx supercov diff latest` and confirm the suite still passes.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Supercov measures coverage of the test command you give it, so the result is only as complete as that command; the README notes that ambiguous scope and missing evidence are shown as blockers rather than hidden.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "A project with a complete test command the repository already runs, such as npm test, pytest or cargo test",
  "Node.js so npx can fetch Supercov, or one of the other install routes in the README",
  "A TypeSafe AI API key from https://typesafe.ai, only for quality and security scoring; coverage needs no account"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/supercorp-ai-supercov/write-first-missing-test/",
 "md": "https://dedupedai.com/use-cases/supercorp-ai-supercov/write-first-missing-test/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/supercorp-ai-supercov--write-first-missing-test.json",
 "api_version": "v1"
}
