# Run All Tests And Fix

> Run full test suite and fix failures

- Skill: `emaraschio/run-all-tests-and-fix` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add emaraschio/run-all-tests-and-fix`
- Raw SKILL.md: https://api.skillmd.com/api/skills/emaraschio/run-all-tests-and-fix/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: emaraschio (https://skillmd.com/u/emaraschio)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/emaraschio/run-all-tests-and-fix

---

## Overview

Execute the full test suite and systematically fix any failures, ensuring code
quality and functionality.

## Steps

1. **Run test suite**
    - Execute all tests in the project that are relevant to the current changes you are making
    - Capture output and identify failures
    - Check both unit and integration tests
2. **Analyze failures**
    - Categorize by type: flaky, broken, new failures
    - Prioritize fixes based on impact
    - Check if failures are related to recent changes
3. **Fix issues systematically**
    - Start with the most critical failures
    - Fix one issue at a time
    - Re-run tests after each fix

## Test Recovery Checklist

- [ ] Full test suite executed
- [ ] Failures categorized and tracked
- [ ] Root causes resolved
- [ ] Tests re-run with passing results
- [ ] Follow-up improvements noted

## Guardrails

- Fix the root cause of a failure; never delete or weaken a test to go green.
- Never silently skip a failing test; report it and the reason.
- Do not commit, push, merge, or run destructive commands without explicit user consent.
