用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/stbenjam/skillsaw --skill run-tests命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | run-tests |
| description | Execute the project test suite with coverage reporting. Use when validating a change. |
| compatibility | Requires pytest, jest, or go test |
| metadata | {"author":"dx-team","version":"1.3"} |
Execute the full test suite for the current project, collect coverage metrics, and report results in a structured format.
Use after making code changes to verify nothing is broken, or when the user explicitly asks to run tests.
Identify the test framework by checking these files in order:
pyproject.toml or pytest.ini → pytestpackage.json with a test script → jest / vitestgo.mod → go testCargo.toml → cargo testExecute the test suite with coverage enabled:
pytest tests/ -v --cov=src --cov-report=term-missingnpx jest --coverage --verbosego test -v -coverprofile=coverage.out ./...cargo test -- --nocaptureExtract from the test output:
Format a markdown summary:
| Metric | Value |
|---|---|
| Total | N |
| Passed | N |
| Failed | N |
| Coverage | N% |
If any tests failed, include the failure output with file paths and line numbers.