Skip to content

Decouple cmprefimpl test inputs from unit tests#690

Merged
peterstace merged 1 commit intomasterfrom
store_cmprefimpl_strings_in_file
Jan 31, 2026
Merged

Decouple cmprefimpl test inputs from unit tests#690
peterstace merged 1 commit intomasterfrom
store_cmprefimpl_strings_in_file

Conversation

@peterstace
Copy link
Owner

Description

Store cmprefimpl inputs in a versioned text file instead of scraping them from the codebase at runtime. This prevents new unit tests from inadvertently causing cmprefimpl test failures.

  • Add scraper utility to extract strings from codebase - Add strings.txt with extracted test inputs - Add blacklist.txt for excluding specific strings - Modify cmpgeos and cmppg to read from strings.txt - Add make scrapestrings target to regenerate inputs

Check List

Have you:

  • Added unit tests? N/A

  • Add cmprefimpl tests? (if appropriate?) N/A

  • Updated release notes? (if appropriate?) N/A

  • Updated the README.md (if new functionality is added?) N/A

Related Issue

Store cmprefimpl inputs in a versioned text file instead of scraping
them from the codebase at runtime. This prevents new unit tests from
inadvertently causing cmprefimpl test failures.

- Add scraper utility to extract strings from codebase
- Add strings.txt with extracted test inputs
- Add blacklist.txt for excluding specific strings
- Modify cmpgeos and cmppg to read from strings.txt
- Add `make scrapestrings` target to regenerate inputs
@peterstace peterstace self-assigned this Jan 31, 2026
@peterstace peterstace merged commit 0b64b76 into master Jan 31, 2026
1 check passed
@peterstace peterstace deleted the store_cmprefimpl_strings_in_file branch January 31, 2026 17:44
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.

1 participant