Home / Market / test fixing

test fixing

Systematically identify and fix all failing tests using smart grouping strategies. Use when explicitly asks to fix tests ("fix these tests", "make tests pass"), reports test failures ("tests are failing", "test suite is broken"), or completes implementation and wants tests passing.

skill★ 508220 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: test-fixing description: "Systematically identify and fix all failing tests using smart grouping strategies. Use when explicitly asks to fix tests (\"fix these tests\", \"make tests pass\"), reports test failures (\"tests are failing\", \"test suite is broken\"), or completes implementation and wants tests passing." risk: safe source: community date_added: "2026-02-27"

---

Test Fixing

Systematically identify and fix all failing tests using smart grouping strategies.

When to Use

Systematic Approach

1. Initial Test Run

Run make test to identify all failing tests.

Analyze output for:

2. Smart Error Grouping

Group similar failures by:

Prioritize groups by:

3. Systematic Fixing Process

For each group (starting with highest impact):

  1. Identify root cause
  1. Implement fix
  1. Verify fix
     uv run pytest tests/path/to/test_file.py -v
     uv run pytest -k "pattern" -v
  1. Move to next group

4. Fix Order Strategy

Infrastructure first:

Then API changes:

Finally, logic issues:

5. Final Verification

After all groups fixed:

Best Practices

Example Workflow

User: "The tests are failing after my refactor"

  1. Run make test → 15 failures identified
  2. Group errors:
  1. Fix ImportErrors first → Run subset → Verify
  2. Fix AttributeErrors → Run subset → Verify
  3. Fix AssertionErrors → Run subset → Verify
  4. Run full suite → All pass ✓

Limitations