Skip to content

ct-runner tests: one FULL_RUN_COUNTS constant; bundle test asserts its own facts - #288

Merged
lannbot merged 1 commit into
mainfrom
counts-constant
Sep 6, 2026
Merged

ct-runner tests: one FULL_RUN_COUNTS constant; bundle test asserts its own facts#288
lannbot merged 1 commit into
mainfrom
counts-constant

Conversation

@lannbot

@lannbot lannbot commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #287. Five tests spelled out the identical full RunCounts tally for an unfiltered fixture run while testing something else; every additive field meant editing all of them, and the one outside ct-runner (tools/release-bundle/bundle_test.ts) broke CI on #287.

  • Four ct-runner smoke sites share FULL_RUN_COUNTS in tests/support.ts.
  • The release-bundle test is about the tags inventory surviving bundling, so it asserts counts.na === 1 and counts.total === 6 — the facts it is about — severing its coupling to the tally shape.
  • Tests whose subject is the counts (only, tags) keep their explicit literals, since the exhaustive object is what catches a case landing in the wrong bucket.

Net −30 lines. just test-ct-runner 24/0, just test-bundle 2/0, deno task check clean.

…s own facts

Five tests spelled out the identical full RunCounts tally for an
unfiltered run of the fixture suite while testing something else (golden
output, freshCases=false, shard-absent identity, bundle contents); every
additive field meant editing all of them, and the one outside ct-runner
broke CI on #287. The four ct-runner sites now share a constant in
support.ts. The release-bundle test is about the tags inventory surviving
bundling, so it asserts na and total — severing its coupling to the
tally's shape. Tests whose subject IS the counts keep explicit literals.
@lannbot
lannbot enabled auto-merge September 6, 2026 04:37
@lannbot
lannbot merged commit 0ab4a76 into main Sep 6, 2026
3 checks passed
@lannbot
lannbot deleted the counts-constant branch September 6, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants