Fix the two Ice Cream tests that broke the headless gate #338

Merged
nelsong6 merged 1 commit from claude/fix-ice-cream-test-assertions into main 2026-10-10 19:53:52 -07:00
nelsong6 commented 2026-10-10 19:27:33 -07:00 (Migrated from github.com)

Both failures were in the tests, not the tracking. #337 merged before CI
reported, so main went red on 864bfd9.

The tooltip assertion

It looked for "Avg energy conserved per turn" and found nothing.
RelicStatRowVocabulary strips a concept that follows per from the visible
label and re-renders it as a denominator icon, so the rendered label is
"Avg energy conserved" and the full wording only survives in the row's hint.

Every other relic with per-turn and per-combat rows already opens the row
description with the label's own wording — Orichalcum's
"Block missed per turn — ..." is exactly why its otherwise identical
assertion passes. Matched that convention rather than loosening the assertion,
so label and hint agree, which is the point of it.

The suppressor scan

It called GetTypes() on the game assembly. The headless gate builds against
the checked-in lib/sts2.dll reference stub, which ships without its full
dependency closure (SmartFormat, Steamworks.NET), so that throws
ReflectionTypeLoadException partway through even though IceCream and the
rest of the relic models loaded fine. Now scans the types that did load — a
second suppressor still fails the assertion, which is the guarantee the test
exists for.

Verification

Run the way the gate runs it, with Sts2DataDir forced empty so the csproj
falls back to lib/:

dotnet test Tests/SpireLens.Core.Tests/SpireLens.Core.Tests.csproj -c Release \
  -p:SkipModsDeploy=true -p:Sts2DataDir= --filter "Category!=RequiresLiveGame"

Failed: 0, Passed: 2013, Skipped: 0.

Both failures were in the tests, not the tracking. #337 merged before CI reported, so `main` went red on `864bfd9`. ## The tooltip assertion It looked for `"Avg energy conserved per turn"` and found nothing. `RelicStatRowVocabulary` strips a concept that follows `per` from the visible label and re-renders it as a denominator icon, so the rendered label is `"Avg energy conserved"` and the full wording only survives in the row's hint. Every other relic with per-turn and per-combat rows already opens the row description with the label's own wording — Orichalcum's `"Block missed per turn — ..."` is exactly why its otherwise identical assertion passes. Matched that convention rather than loosening the assertion, so label and hint agree, which is the point of it. ## The suppressor scan It called `GetTypes()` on the game assembly. The headless gate builds against the checked-in `lib/sts2.dll` reference stub, which ships without its full dependency closure (`SmartFormat`, `Steamworks.NET`), so that throws `ReflectionTypeLoadException` partway through even though `IceCream` and the rest of the relic models loaded fine. Now scans the types that did load — a second suppressor still fails the assertion, which is the guarantee the test exists for. ## Verification Run the way the gate runs it, with `Sts2DataDir` forced empty so the csproj falls back to `lib/`: ``` dotnet test Tests/SpireLens.Core.Tests/SpireLens.Core.Tests.csproj -c Release \ -p:SkipModsDeploy=true -p:Sts2DataDir= --filter "Category!=RequiresLiveGame" ``` `Failed: 0, Passed: 2013, Skipped: 0`.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens!338
No description provided.