Test fixing

From eric861129/SKILLS_All-in-one · View interactive version

Test fixing is an AI agent skill from the GitHub repository eric861129/SKILLS_All-in-one. Run tests and systematically fix all failing tests using smart error grouping. Use when user asks to fix failing tests, mentions test failures, runs test suite and failures occur, or requests to make tests pass.

How to use this skill

Skill file

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

```bash

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 ✓
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.