Run All Tests And Fix

Run full test suite and fix failures

emaraschio Updated

File contents

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.

emaraschio/cursor-commands/tree/main/.cursor/skill-contracts/run-all-tests-and-fix commit 8ebec4ed91

Frequently asked questions

npx skillmds@latest add emaraschio/run-all-tests-and-fix