Framework: an exact selector for a fixed-seed unit (Rerun lines are coarse -t filters today)

未关闭
#78 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
testing

调研方向

Start with how ORACLE_UNIT is read for a random unit during path replay in oracle-property.ts (assertReplayUnit) and oracle-environment.ts, then find where the fixed-seed Rerun line is built. Add an ORACLE_FIXED_UNIT selector read the same way, with an oracle RED/GREEN test written first. Done when a Rerun line for Q"1 runs only that unit and not Q21.

由索引模型根据 Issue 内容生成。

描述

Follow-up from #58 (Windows CI). A failing fixed-seed unit prints a Rerun command that is a coarse -t filter: a sibling test whose name matches the same anchored pattern also runs. Example: a unit named fixture Q"1 replay and a sibling fixture Q21 replay share a filter that a regular-expression wildcard in the name can match.

The framework has no selector for a fixed-seed unit. ORACLE_UNIT is read only for a random unit during a path replay (oracle-property.ts assertReplayUnit, oracle-environment.ts), so a fixed unit cannot be selected exactly by an environment variable.

Proposed: a framework selector for a fixed-seed unit (for example ORACLE_FIXED_UNIT, read the same way as ORACLE_UNIT), with a Rerun line that uses it, and an oracle RED/GREEN for it (framework changes are oracle-first, P9). Acceptance: a Rerun line for Q"1 runs that unit only, and not Q21.

Recorded as a Limit on #58 until this lands.

主要语言
JavaScript
星标
5
派生
1
平均合并
8 小时 31 分钟
30 天内合并 PR
60

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TanStack/oracles 的其他 Issue

查看 TanStack/oracles 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。