Skip to content

test(ui): guard qrc resource keys against broken and stale references - #317

Merged
gmmcosta15 merged 4 commits into
devfrom
test/resource-key-guard
Sep 28, 2026
Merged

gmmcosta15 merged 4 commits into
devfrom
test/resource-key-guard

Conversation

@gmmcosta15

Copy link
Copy Markdown
Collaborator

Description

  • Feature

  • Assert every :/ literal under lib is declared by a .qrc.

  • Assert every .qrc <file> exists on disk.

  • Assert the _rc.py blobs match the .qrc XML and the current asset bytes.

  • Assert every .svg font-family resolves without substitution.

  • XFAIL_KEYS records the keys already broken on dev; may only shrink.

Motivation

Qt returns a null pixmap for a missing key and silently substitutes a missing font, logging neither. This makes both loud before the refactors land.

Tests

7 new tests, all passing.

@gmmcosta15
gmmcosta15 force-pushed the test/resource-key-guard branch from 974fdd3 to 696f920 Compare September 24, 2026 09:39
Base automatically changed from chore/ui-delete-dead-modules to dev September 28, 2026 09:48
@gmmcosta15
gmmcosta15 merged commit 5600a11 into dev Sep 28, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests that update python code testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant