AGENT SKILL
unittest
暂无简介
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 3
03 SKILL.md 正文
Base directory for this skill: .
/unittest
Run PerfX unit tests with coverage reporting.
Steps
-
Ensure venv is active and dependencies installed
python3 -m venv .venv .venv/bin/pip install -r requirements.txt pytest pytest-cov -q -
Run all tests with coverage
.venv/bin/pytest tests/ --cov=perfx --cov-report=term-missing -q -
Report results
- Show the coverage table
- List any failing tests with their error messages
Notes
- Live GitHub/Jira integration tests are skipped when credentials are absent — this is expected
- The venv may need to be recreated if the interpreter path is stale:
python3 -m venv .venv --clear - Skills scripts under
skills/are tested via subprocess intests/perfx/skills/ - To run a single test file:
.venv/bin/pytest tests/perfx/test_models.py -v - To run with a specific skill only:
.venv/bin/pytest tests/perfx/skills/test_vmexit_analysis.py -v