dotnet-test-triage
Run dotnet test, capture failed test cases, and generate a rerun filter plus a markdown failure summary. Use when test runs fail and you need a focused rerun command or a compact failure report.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
dotnet-test-triage
Run dotnet test, collect failed test cases, and write a compact failure report plus a rerun filter.
Outputs
-
artifacts/codex/test-failures.md -
artifacts/codex/test-filter.txt
Run
bash .codex/skills/dotnet-test-triage/scripts/run-test-triage.sh
Optional: pass arguments through to dotnet test:
bash .codex/skills/dotnet-test-triage/scripts/run-test-triage.sh ./Workbench.slnx --no-restore
Optional: override the default command (useful for repo-specific defaults):
DOTNET_TEST_CMD="dotnet test ./Workbench.slnx --no-restore" \
bash .codex/skills/dotnet-test-triage/scripts/run-test-triage.sh
Rerun recommendations
- Basic rerun of failures:
-
dotnet test --filter "$(cat artifacts/codex/test-filter.txt)"
-
- More output:
-
dotnet test --filter "$(cat artifacts/codex/test-filter.txt)" -v normal -
dotnet test --filter "$(cat artifacts/codex/test-filter.txt)" -v diag
-
- Capture blame for crashes/hangs:
-
dotnet test --filter "$(cat artifacts/codex/test-filter.txt)" --blame -
dotnet test --filter "$(cat artifacts/codex/test-filter.txt)" --blame-hang --blame-hang-timeout 10m
-
- Disable parallelization if needed:
-
dotnet test --filter "$(cat artifacts/codex/test-filter.txt)" --no-parallel
-
Notes
- The filter file is empty when no failing tests are detected.
- The failure report contains the test name and a short error snippet from the TRX logs.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 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!