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

  1. Ensure venv is active and dependencies installed

    python3 -m venv .venv
    .venv/bin/pip install -r requirements.txt pytest pytest-cov -q
    
  2. Run all tests with coverage

    .venv/bin/pytest tests/ --cov=perfx --cov-report=term-missing -q
    
  3. 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 in tests/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

04 同仓库更多 Skills