The workflow checks for lockfiles or project manifests to select Python with uv and pytest, Node with pnpm and Vitest or npm, or Rust with Cargo. It provides commands for full test runs, coverage, watch mode, and targeted tests, with examples of expected success and failure output.
Detects the stack and runs tests with the right command.
if [ -f "uv.lock" ]; then
STACK="python"
elif [ -f "pnpm-lock.yaml" ]; then
STACK="node" # pnpm + vitest
elif [ -f "package.json" ]; then
STACK="node-npm" # npm test (jest or the repo's own runner)
elif [ -f "Cargo.toml" ]; then
STACK="rust"
else
STACK="unknown"
fi# All tests
uv run pytest --tb=short -q $ARGUMENTS
# With coverage
uv run pytest --cov=src --cov-report=term-missing -q
# Specific file or folder
uv run pytest $ARGUMENTS -v# All tests
pnpm vitest run $ARGUMENTS
# With coverage
pnpm vitest run --coverage
# Watch mode (dev)
pnpm vitestnpm test -- --passWithNoTests $ARGUMENTScargo test --quiet $ARGUMENTS 2>&1Tests: my-api (Python/pytest)
───────────────────────────────
uv run pytest --tb=short -q
[pytest output]
✅ 42 passed in 3.1s → Ready to pushOn failure:
❌ 2 failed
FAILED tests/test_billing.py::TestInvoice::test_promo_expired
AssertionError: expected discount=0, got discount=10
→ Fix before pushing./ci-tests
/ci-tests tests/test_orders.py
/ci-tests src/components/Button.test.tsxTarget: $ARGUMENTS
f97e4f7
uvuv runuv run pytestpnpmpnpm vitestpnpm vitest runnpmnpm testcargocargo testpytestvitestIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.