2e14873f2d
Track application source and tests; exclude local env, user workspaces, and runtime data via .gitignore. Co-authored-by: Cursor <cursoragent@cursor.com>
807 B
807 B
name, description
| name | description |
|---|---|
| test-runner | 测试运行技能:运行 cargo test 并解析通过/失败结果 |
测试运行
使用内置 test_runner 平台扩展运行项目测试并分析结果。
何时使用
- 用户要验证改动是否破坏了现有测试
- 用户要跑某个 crate 或特定测试用例
- 需要查看有哪些测试可运行
工具
| 工具 | 用途 |
|---|---|
run_tests |
运行测试,可按包名和测试名过滤,支持超时 |
list_tests |
列出所有可用测试(不执行) |
规则
- 修复 bug 后必须运行相关测试确认
- 用
test_filter只跑受影响的测试,避免全量耗时 - 默认超时 120 秒,大型集成测试可适当调高
- 看到 FAILED 行后,重点关注
failures:区段的具体错误