# Fixing failing tests (/testing--test-fix)

/testing--test-fix is a Claude Code skill in the Code section. Runs your test suite, works out whether each failure is in the test, the code or the environment, fixes it and re-runs to confirm.

- Web version: https://skills.sgomez.dev/en/s/testing--test-fix
- Section: [Code](https://skills.sgomez.dev/en/code.md)
- Author: Santiago Gómez de la Torre
- License: MIT
- Source: https://github.com/sgomez-dev/claude-skills/blob/main/skills/testing/test-fix.md
- Updated 26 Mar 2026

## How to ask for it

- `/testing--test-fix fix the tests failing in CI`
- `/testing--test-fix why is this test failing since the last commit?`
- `/testing--test-fix diagnose this flaky test`

## Install

macOS · Linux:

```
curl -fsSL https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.sh | bash
```

Windows:

```
irm https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.ps1 | iex
```

Claude Code plugin:

```
/plugin marketplace add sgomez-dev/claude-skills
/plugin install testing-skills@claude-skills-collection
```

## Permissions

- Reads: `**/*`
- Writes: `**/*`
- Runs: `npm test`, `pytest`, `go test`
- Network: No
- Destructive: No

## Author's description

Diagnose and fix failing tests

- [How we review this](https://skills.sgomez.dev/en/methodology.md)
