test
Use when running tests, reproducing the repository's assurance gate locally, checking failures, or verifying coverage for openrouter-mcp
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when running tests, reproducing the repository's assurance gate locally, checking failures, or verifying coverage for openrouter-mcp
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when publishing or releasing openrouter-mcp to npm, or preparing a version for distribution with metadata and release checks
Use when installing or repairing Claude Desktop or Claude Code MCP config, checking status, backing up config files, or fixing config drift in openrouter-mcp
Use when changing concurrency limits, quota rules, circuit breakers, cleanup behavior, or other high-risk resilience policies in the collective-intelligence paths
Use when handling API key setup, credential rotation or deletion, security-audit runs, shared-environment risk checks, or security-document hygiene in openrouter-mcp
Use when checking code quality, running linting, formatting code, or verifying static analysis gates before PR or publish.
Use when the user asks to continue with additional tasks while keeping current work in progress, or needs parallel branch development, hotfix interruption handling, and review sandboxes without extra clones. Use when tasks involve `git worktree add/list/remove/prune/lock/repair`, resolving branch-in-use conflicts across worktrees, configuring per-worktree settings (`git config --worktree`, `extensions.worktreeConfig`), or writing scripts that must resolve worktree paths safely with `git rev-parse`.
| name | test |
| description | Use when running tests, reproducing the repository's assurance gate locally, checking failures, or verifying coverage for openrouter-mcp |
This repository's canonical local test entrypoint is python3 run_tests.py <suite> -v.
Use it even when package.json exposes wrappers; the Python runner is the source of truth for local assurance behavior.
python3 for running run_tests.py and installing Python dependencies.python3 is unavailable but python exists, use python as fallback..venv.assurance for PR readiness.quick first and then regression if needed.npm run test:assurance unless the user explicitly wants the npm wrapper.python3 and npm are available.assurance or coverage, ensure pytest-cov is installed:
python3 -m pip install -r requirements-dev.txt
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements-dev.txt
real suite, require OPENROUTER_API_KEY and remember the run is interactive and billable.python3 run_tests.py <suite> -v
| Suite | Command | When to use |
|---|---|---|
assurance | python3 run_tests.py assurance -v | PR gate (unit+contract+property+replay+security, coverage>=70%) |
unit | python3 run_tests.py unit -v | Fast isolated checks during development |
integration | python3 run_tests.py integration -v | Mocked API integration smoke test |
quick | python3 run_tests.py quick -v | Fastest sanity (two regression guards only) |
regression | python3 run_tests.py regression -v | Critical bug-prevention tests |
coverage | python3 run_tests.py coverage -v | Full HTML coverage report (htmlcov/index.html) |
all | python3 run_tests.py all -v | Everything except real API tests |
real | python3 run_tests.py real -v | Live API calls - requires OPENROUTER_API_KEY, consumes credits |
build skill first.python3 run_tests.py assurance -v
quick, regression, or a targeted pytest command, then return to assurance before claiming readiness.pytest-cov missing:
install requirements-dev.txt first.npm missing:
assurance cannot finish because it runs npm run test:security after pytest succeeds.node_modules/ missing:
allow run_tests.py to install them, or run npm install --no-audit --no-fund yourself.OPENROUTER_API_KEY missing:
real will fail fast; use mocked suites instead.run_tests.py unless the user explicitly wants raw pytest -m ....-v: Always include for readable output.--no-cov: Use only for debugging when speed is more important than coverage gating.assurance runs Python assurance slices first and Node security tests second.build.