一键导入
testing
Detect the project's test framework (pytest, jest, go test, cargo test, mocha, rspec) and run, parse, and triage failures.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Detect the project's test framework (pytest, jest, go test, cargo test, mocha, rspec) and run, parse, and triage failures.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Navigate large codebases and make surgical edits while following project conventions. Use for refactors, feature work, and bug fixes spanning multiple files.
Inspect, filter, and summarize JSON, CSV, and log data using jq, awk, and pandas.
Read and edit Microsoft Word documents (.docx). Use for document editing and content extraction.
Branch, commit, rebase, and resolve conflicts. Use for PR prep, conventional commit messages, and history cleanup.
Author and edit README, CHANGELOG, and other markdown documentation, following the project's existing style.
Extract text, merge, split, and search PDF documents. Use whenever the user mentions a PDF file.
| name | testing |
| description | Detect the project's test framework (pytest, jest, go test, cargo test, mocha, rspec) and run, parse, and triage failures. |
| Signal | Framework | Command |
|---|---|---|
pyproject.toml or pytest.ini or setup.cfg [tool:pytest] | pytest | pytest |
package.json scripts with "jest" | Jest | npx jest |
package.json scripts with "vitest" | Vitest | npx vitest run |
package.json scripts with "mocha" | Mocha | npx mocha |
go.mod | go test | go test ./... |
Cargo.toml | cargo test | cargo test |
Gemfile with rspec | RSpec | bundle exec rspec |
When uncertain, run cat package.json | python3 -c "import json,sys; d=json.load(sys.stdin); print(d.get('scripts',{}))" to inspect scripts.
Run pytest with verbose output on failures:
pytest -v --tb=short 2>&1
Run only failed tests:
pytest --lf
Run specific test by name:
pytest -k "test_my_function"
Run Jest in non-interactive mode:
npx jest --no-coverage 2>&1
Run specific Jest test file:
npx jest tests/foo.test.js
Run Go tests with verbose output:
go test ./... -v 2>&1
Run Cargo tests:
cargo test 2>&1
Run RSpec:
bundle exec rspec --format documentation 2>&1
pytest outputs to both stdout and stderr; capture both with 2>&1.npm test may run in watch mode — prefer npx jest --watchAll=false or npx vitest run.scripts section of package.json.references/pytest.md — pytest markers, common flags, fixture patternsreferences/jest.md — Jest matchers, mocking, common patterns