Replace the large Material color golden theories with loops that name every failing row #258

Closed
opened 2026-10-27 21:26:17 -05:00 by ethan-hann · 1 comment
Owner

DynamicColorToneGoldenTests (851 cases), HctTests (306), TonalPaletteTests (255), ContrastTests (162) and the per-role rows of Md3PaletteGoldenTests are correctness goldens from Google's material-color-utilities, but each row is its own case. Turn each into one test that walks the golden file, compares every value and reports every mismatch in one message, with a guard that the file holds the expected number of rows. (standard: .agents/coding-standards/tests-meaningful-and-fast.md, Known violations)

DynamicColorToneGoldenTests (851 cases), HctTests (306), TonalPaletteTests (255), ContrastTests (162) and the per-role rows of Md3PaletteGoldenTests are correctness goldens from Google's material-color-utilities, but each row is its own case. Turn each into one test that walks the golden file, compares every value and reports every mismatch in one message, with a guard that the file holds the expected number of rows. (standard: .agents/coding-standards/tests-meaningful-and-fast.md, Known violations)
ethan-hann added this to the Code Cleanup milestone 2026-10-27 21:26:17 -05:00
Author
Owner

Shipped in SavePoint 0.9.22 (PR #274).

Shipped in [SavePoint 0.9.22](https://git.tortal.tech/ethan-hann/SavePoint/releases/tag/v0.9.22) (PR #274).
Sign in to join this conversation.
No milestone
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
ethan-hann/SavePoint#258
No description provided.