> ## Documentation Index
> Fetch the complete documentation index at: https://smithers-feat-claude-workflow-mirror.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# improve-test-coverage

> Add missing tests and validate the result.

`improve-test-coverage` runs the shared `ValidationLoop` with a prompt focused on finding and filling high-impact test gaps.

```bash theme={null}
bunx smithers-orchestrator workflow run improve-test-coverage --prompt "Add regression coverage for webhook signature failures"
```

## Inputs

| Input    | Type   | Default                                                   |
| -------- | ------ | --------------------------------------------------------- |
| `prompt` | string | `"Improve the test coverage for the current repository."` |

## Use it when

* A feature landed without enough tests.
* A bug fix needs regression coverage.
* Review or audit found weak boundary coverage.

## Use something else when

* You are still fixing the bug: use [`debug`](/workflows/debug) first, then this workflow for regression coverage.
* You want a broad gap report rather than new tests: use [`audit`](/workflows/audit) with `focus: "test coverage"`.

## Resume & retry

Runs the shared validation loop (up to 3 iterations) and commits to the working tree. Runs are durable and resume with `up --resume`.

Transient session/infra errors such as `SESSION_ERROR`, stream disconnects, rate limits, OOMs, and timeouts must never fail a whole run; retry the affected node and let unrelated verified work continue.
