agents-test
Run targeted tests using src.agents.scripts.test after code changes. Use when you need to execute only affected tests, pass a custom pytest command, or collect JSON test summaries with sub-agent fixes.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Agents Test
Overview
Use this skill to run only the affected tests and capture a JSON summary.
Quick start
Run the default test command (pytest with -q -n auto) through the sub-agent.
uv run python -m src.agents.scripts.test
Targeted tests (required by repo policy)
Always pass a narrowed task.test_cmd for affected files.
uv run python -m src.agents.scripts.test \
'task.test_cmd=uv run --no-sync pytest -q -n auto tests/unit/test_affected.py'
Use a specific test case when needed.
uv run python -m src.agents.scripts.test \
'task.test_cmd=uv run --no-sync pytest -q tests/test_example.py::test_case'
Output and logs
The script prints a single-line JSON summary and stores logs under
agents_workspace/sub_agents/logs/pytest_*.log.
Cache workaround
If uv cache permissions fail, use a workspace cache:
uv run python -m src.agents.scripts.test \
'task.test_cmd=uv --cache-dir agents_workspace/tmp_cache/uv_cache run --no-sync pytest -q tests/...'
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!