D
dsh-flakefinder
v0.2.2 · 1 天前发布
DSH 测试稳定性插件:flaky_detect/history/quarantine/clear/report 五工具,支持 vitest/jest/pytest/node:test,重复运行测试并识别不稳定用例,JUnit/TAP 完整解析,JSON 历史与隔离清单,零运行时依赖。
README
dsh-flakefinder
让 agent 分清「代码坏了」还是「测试在抽风」。
DeepSeek Harness 测试稳定性插件:支持 vitest / jest / pytest / node:test,重复运行测试并识别 flaky 用例,历史留档、隔离清单、写操作审批门。零运行时依赖。

工具
| 工具 | 作用 | 写操作 |
| :-- | :-- | :-- |
| flaky_detect | 重复运行测试 N 次,判定 stable-pass / stable-fail / flaky | 否(写历史) |
| flaky_history | 查询检测历史,按目标过滤 | 否 |
| flaky_report | 汇总隔离清单 + 历史,输出稳定性报告 | 否 |
| flaky_quarantine | 把 flaky 用例写入 .flakefinder.json 隔离清单 | 是(审批门) |
| flaky_clear | 从隔离清单移除已恢复的用例 | 是(审批门) |
支持框架:
node_modules/vitest/vitest.mjs,使用 JSON reporter版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-flakefinder
- Repo
- git+https://github.com/STARDUSTLC666/dsh-flakefinder.git
- Engines
{"node":">=22.13"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}