Run All Tests And Fix

Run full test suite and fix failures

emaraschio Updated 9 repo stars
A felt-lined case of identical steel dies beside a linen booklet closed with an unmarked wax seal. Caption: a contract behind every slash command.

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 commit 8ebec4ed91

Frequently asked questions

npx get-skill add emaraschio/run-all-tests-and-fix