Skip to content

Commit 42d5336

Browse files
committed
docs(standards): 补门禁稳定性纪律三小段
1 parent aa93655 commit 42d5336

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎docs/standards/testing.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ before-release:
187187

188188
依据与「可测 / 不可测」的完整边界见[动效规范](motion.md)的「判据纪律(可测与不可测)」。
189189

190+
### 第九部分:门禁执行与稳定性纪律(批 8 立项)
191+
192+
**R-FLAKE(判「某红是 flake」的三条件,缺一 ⇒ 只写「未判定」)**:① **≥3 次重复**读数 ② **与某个可观测量的相关性**(如 transform 耗时 / 缓存冷热)③ **该文件不在本次写集内**的证据。
193+
**WARM-CACHE**:全量 `vitest` **冷 / 热两次**都要跑、两次读数**都**登记;**不得**只贴一次「0 failed」就当全量无红。
194+
**P9(并行假红)**:**门禁与变异体实验一律串行**;任何并行跑出来的红**不得**当缺陷登记,其签名必须带**测试名 + 超时阈值 + 错误串形态**并注明「串行复跑通过」;Rust 侧与 JS 侧**分开列**。
195+
190196
## 检查清单
191197

192198
- [ ] 测试金字塔比例合理(单元 > 集成 > E2E)

0 commit comments

Comments
 (0)