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

Offen
#78 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
testing

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
JavaScript
Sterne
5
Forks
1
Ø Merge
6 Std.
Gemergte PRs (30 T.)
56

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TanStack/oracles

Alle Issues in TanStack/oracles

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.