pare-test
v0.24.2Pare Test ג€” Auto-detects test framework (pytest, jest, vitest, mocha), returns typed JSON.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run Run Tests
Auto-detects test framework (pytest/jest/vitest/mocha), runs tests, returns structured results with failures.
| Parameter | Type | Description |
|---|---|---|
args | array | Additional arguments to pass to the test runner. Each element is validated to prevent flag injection. |
bail | Fail fast after N failures (maps to --maxfail=N for pytest, --bail=N for jest/vitest, --bail for mocha). Pass true for 1. | |
compact | boolean | Prefer compact output |
config | string | Path to test config file (--config for all frameworks) |
coverage | boolean | Run with coverage (adds --coverage for vitest/jest, --cov for pytest) |
exitFirst | boolean | Stop on first test failure (maps to -x for pytest, --bail=1 for jest/vitest, -b for mocha) |
filter | string | Test filter pattern (file path or test name pattern) |
framework | string | Force a specific framework instead of auto-detecting |
interpreter | string | Python interpreter path to use for pytest (overrides venv/PATH detection) |
onlyChanged | boolean | Run only tests affected by recent changes (maps to --lf for pytest, --onlyChanged for jest, --changed for vitest) |
passWithNoTests | boolean | Exit successfully when no tests are found (maps to --passWithNoTests for jest/vitest) |
path | string | Project root path |
shard | string | Shard spec for distributed test execution (e.g., "1/3") via --shard (jest/vitest) |
testNamePattern | string | Filter tests by name pattern (maps to -k for pytest, --testNamePattern for jest/vitest, --grep for mocha) |
timeout | integer | Per-test timeout in milliseconds (maps to --timeout for pytest-timeout, --testTimeout for jest/vitest, --timeout for mocha) |
updateSnapshots | boolean | Update snapshots (vitest/jest only, adds -u flag) |
workers | integer | Number of parallel workers (maps to -n for pytest-xdist, --maxWorkers for jest, --pool.threads.maxThreads for vitest, --jobs for mocha) |
coverage Test Coverage
Runs tests with coverage and returns structured coverage summary per file.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Include all source files in coverage, even untested ones (maps to --coverage.all for vitest, --all for nyc) |
args | array | Additional arguments to pass to the coverage runner. Each element is validated to prevent flag injection. |
branch | boolean | Collect branch coverage (maps to --cov-branch for pytest) |
compact | boolean | Prefer compact output |
exclude | array | File patterns to exclude from coverage |
failUnder | number | Minimum line coverage percentage; fail if below (maps to --cov-fail-under for pytest, --coverageThreshold for jest, --coverage.thresholds.lines for vitest, --check-coverage --lines for nyc) |
filter | string | Test filter pattern to run coverage on a subset of tests |
framework | string | Force a specific framework instead of auto-detecting |
interpreter | string | Python interpreter path to use for pytest (overrides venv/PATH detection) |
path | string | Project root path |
source | array | Source paths to scope coverage (maps to --cov=PATH for pytest, --collectCoverageFrom for jest, --coverage.include for vitest, --include for nyc) |
playwright Playwright Tests
Runs Playwright tests with JSON reporter and returns structured results with pass/fail status, duration, and error messages.
| Parameter | Type | Description |
|---|---|---|
args | array | Additional arguments passed verbatim to `playwright test`, flags included (e.g., ["--list"]). Only NUL/newline characters are rejected. |
browser | string | Browser to use (e.g., "chromium", "firefox", "webkit") via --browser |
compact | boolean | Prefer compact output |
config | string | Path to non-default Playwright config file (--config) |
filter | string | Test filter pattern (file path or test name grep pattern) |
forbidOnly | boolean | Fail if test.only is found — CI safety check (maps to --forbid-only) |
grep | string | Regex pattern for matching tests by title (--grep) |
headed | boolean | Run tests in headed browser mode |
lastFailed | boolean | Re-run only previously failed tests (maps to --last-failed) |
maxFailures | number | Stop after this many test failures (maps to --max-failures) |
onlyChanged | boolean | Run only tests affected by recent changes (maps to --only-changed) |
passWithNoTests | boolean | Exit successfully when no tests are found (maps to --pass-with-no-tests) |
path | string | Project root path |
project | string | Playwright project name (e.g., 'chromium', 'firefox', 'webkit') |
retries | number | Number of retries for failed tests (maps to --retries) |
shard | string | Shard spec for distributed E2E test execution (e.g., "1/3") via --shard |
timeout | number | Per-test timeout in milliseconds (maps to --timeout) |
trace | string | Trace recording mode (--trace) |
updateSnapshots | boolean | Update snapshots (adds --update-snapshots flag) |
workers | number | Number of parallel workers for test execution (maps to --workers) |