원클릭으로
test-runner
Run tests, fix failures, and re-run until the suite passes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run tests, fix failures, and re-run until the suite passes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Ruthlessly tear apart code design — naming, abstractions, coupling, complexity, and everything else.
Generate Mermaid diagrams in the README to visualise architecture, flows, or relationships from the codebase.
Analyse test coverage gaps and report uncovered code before making changes.
Write and improve tests — reuse existing patterns, ensure consistency, and maintain quality.
Isolate a function or code block into a self-contained, runnable script for study and manual testing.
Fix grammar and improve writing while preserving the author's original voice and style.
| name | test-runner |
| description | Run tests, fix failures, and re-run until the suite passes. |
| argument-hint | [files] [instructions] |
| user-invocable | true |
| context | fork |
| disable-model-invocation | true |
Run the project's test suite (or specific test files), diagnose failures, fix them, and re-run until all tests pass.
Files and instructions: $ARGUMENTS
Before running anything, determine the test framework and runner by inspecting the project:
jest, vitest, mocha, ava, tap, playwright, cypress — check package.json scripts, config files (jest.config.*, vitest.config.*, .mocharc.*), and dev dependenciespytest, unittest, nose2, tox — check pyproject.toml, setup.cfg, tox.ini, Makefile, or pytest.inigo test — check for *_test.go filescargo test — check for Cargo.tomlmvn test, gradle test — check pom.xml or build.gradlerspec, minitest — check Gemfile, .rspec, Rakefilebats — check for *.bats filesmix test — check mix.exsphpunit — check phpunit.xml, composer.jsonIf multiple frameworks exist, run the one most relevant to the specified files — or all of them if no files are specified.
The arguments are free-form and flexible. They may contain:
@service.test.ts, tests/unit/, test_*.py, *_test.goWhen no arguments are provided, run the full test suite.
/test-runner — detect the framework and run the full suite/test-runner @service.test.ts — run a specific test file/test-runner tests/unit/ — run all tests in a directory/test-runner only the tests related to authentication — find and run auth tests/test-runner fix the source code, not the tests — fix implementation bugs instead of updating test expectationspackage.json, pyproject.toml, Cargo.toml, go.mod, pom.xml, Gemfile, or equivalent to identify the test runner and its configuration. Check for custom test scripts (e.g. npm test, make test)git diff --name-only to find recently modified test files## Test Results: PASS
Ran **42 tests** in 3.2s — all passed.
## Test Results: PASS (after fixes)
Ran **42 tests** in 4.1s — all passed after fixing 3 failures.
### Fixes applied
1. **`src/services/user.ts:52`** — added uniqueness check before insert (was missing, causing `UserService.create › should reject duplicate emails` to fail)
2. **`src/handlers/__tests__/auth.test.ts:102`** — updated expected status from `429` to `200` (rate limiter was removed in v2.3)
3. **`src/repos/order.ts:34`** — passed `limit` parameter to the query builder (was being ignored)
## Test Results: FAIL (after 3 fix rounds)
Ran **42 tests** in 6.2s — **1 still failing**, 2 fixed, 39 passed.
### Remaining failures
1. **`IntegrationTest.externalAPI › should retry on timeout`**
`tests/integration/api.test.ts:89`
Requires a running mock server on port 8080 — cannot fix automatically.
### Fixes applied
1. **`src/services/user.ts:52`** — added uniqueness check before insert
2. **`src/handlers/__tests__/auth.test.ts:102`** — updated expected status code
## Test Results: UNKNOWN
Could not detect a test framework. Looked for: package.json, pyproject.toml, Cargo.toml, go.mod, pom.xml, Gemfile.
Please specify how to run tests (e.g. `/test-runner npm test` or `/test-runner pytest tests/`).