Initial commit
This commit is contained in:
18
commands/test-debug.md
Normal file
18
commands/test-debug.md
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
description: Run and debug a specific failing test
|
||||
argument-hint: [test-name-or-path]
|
||||
---
|
||||
|
||||
Debug a specific failing test:
|
||||
|
||||
1. Identify the test command for the project (pnpm test, uv run pytest)
|
||||
2. Run the specific test provided in the argument
|
||||
3. If test fails, analyze the error output
|
||||
4. Suggest potential fixes based on the failure
|
||||
5. Allow iterative debugging with repeated test runs
|
||||
6. After test passes, run linters and fix issues (pnpm biome check --write, uv run ruff check --fix, uv run ruff format)
|
||||
7. Run type checking (pnpm tsc --noEmit for TypeScript, uv run ty check for Python)
|
||||
8. Run the test again to ensure it still passes after lint/type fixes
|
||||
9. Stage all changes if everything passes
|
||||
|
||||
IMPORTANT: This is for investigating specific test failures, not for running the full test suite. All linting and type checking must pass before completing.
|
||||
Reference in New Issue
Block a user