Files
memind/.runtime/portal/skills/test-runner/SKILL.md
2026-06-29 22:20:04 +08:00

807 B

name, description
name description
test-runner 测试运行技能:运行 cargo test 并解析通过/失败结果

测试运行

使用内置 test_runner 平台扩展运行项目测试并分析结果。

何时使用

  • 用户要验证改动是否破坏了现有测试
  • 用户要跑某个 crate 或特定测试用例
  • 需要查看有哪些测试可运行

工具

工具 用途
run_tests 运行测试,可按包名和测试名过滤,支持超时
list_tests 列出所有可用测试(不执行)

规则

  1. 修复 bug 后必须运行相关测试确认
  2. test_filter 只跑受影响的测试,避免全量耗时
  3. 默认超时 120 秒,大型集成测试可适当调高
  4. 看到 FAILED 行后,重点关注 failures: 区段的具体错误