Flaky Test Detector

中级testing最低上下文:32K

Diagnoses and fixes flaky tests by analyzing test code and CI failure history for common sources of nondeterminism such as time and timezone dependence, order dependence, shared mutable state, race conditions, and unmocked network calls. Proposes targeted fixes and quarantine strategies to keep the suite trustworthy.

使用场景

  • Finding the root cause of an intermittently failing test
  • Removing order dependence and shared state between tests
  • Stabilizing time- and timezone-sensitive assertions
  • Deciding what to quarantine versus fix immediately

示例提示词

This test passes locally but fails ~15% of the time in CI. Analyze it for sources of flakiness,
identify the most likely root cause, and rewrite it to be deterministic. Note any shared state
or ordering assumptions it relies on.

```
[paste test code and a couple of failure logs]
```

推荐模型

兼容工具

claude-codecursorgithub-copilotkiroany

模态

输入: code, text
输出: code, text

相关 Skills

作者

OpenModels Community

@openmodelsrun