Skip to content
Back to skills

Fix Test

ASecurity

Use when a test fails and needs debugging.

  • 443 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 12, 2026
testinggoshellbashdebugging

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add TypedDevs/bashunit --skill fix-test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fix Test?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fix Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/typeddevs-fix-test/badge)](https://www.skillsdirectory.com/skills/typeddevs-fix-test)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fix-test
description: Use when a test fails and needs debugging.
allowed-tools: [read, edit, shell, Grep, Glob]
---

# Fix a failing test

Repository paths are relative to the repository root. Start with reported output and the failing file; use `./bashunit --filter "test_name" <test-file>` to reproduce narrowly. Discover with the full suite only when no narrower failure is known.

1. Trace the failure to its source and classify it: incorrect expectation/setup, implementation defect, environment/fixture issue, parallel race, or flaky external dependency. Check fixtures under `tests/acceptance/fixtures/` and the fixtures beside each test, and mocks with `assert_have_been_called <name>` where relevant. Temporary diagnostics go to stderr and must be removed.
2. Preserve a failing regression for the actual defect. Correct an expectation only when the intended behavior proves it wrong; otherwise make the smallest implementation fix with TDD. Repair fixtures or setup for environment defects, use the existing `$temp_dir` isolation and wait for asynchronous work for races, and mock external dependencies for flaky tests.
3. Run the focused test until it passes for the right reason. Reproduce relevant parallel behavior when investigating isolation. If the failure may predate the change, verify the same focused test on unchanged main in an isolated checkout.
4. Add a relevant edge case if it protects the root cause. After the complete change set, the coordinator runs the canonical quality gate once; delegates run only assigned targeted checks.

Report the cause, fix, focused evidence, and any specific remaining environment limit.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.