Improve testing framework #2

Merged
HEL merged 4 commits from feat/test-framework into main 2026-05-20 11:17:01 +00:00
Owner

This PR adds a custom snapshot tester script to run the lexer and parser on full Midas source files and compare the outputs / errors with reference snapshots
This Golden Exemplar approach allows broader, more complete tests without the need to tediously define all cases.
The already implemented tests have been kept for reference and because they still make sense

Running the tester

python tester.py run -a

Updating snapshots

python tester.py update -a
This PR adds a custom snapshot tester script to run the lexer and parser on full Midas source files and compare the outputs / errors with reference snapshots This _Golden Exemplar_ approach allows broader, more complete tests without the need to tediously define all cases. The already implemented tests have been kept for reference and because they still make sense ## Running the tester ```bash python tester.py run -a ``` ## Updating snapshots ```bash python tester.py update -a ```
HEL self-assigned this 2026-05-20 11:16:41 +00:00
HEL added 4 commits 2026-05-20 11:16:41 +00:00
HEL merged commit 875ca589e4 into main 2026-05-20 11:17:01 +00:00
HEL deleted branch feat/test-framework 2026-05-20 11:17:01 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: HEL/midas#2