Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs in test regeneration #20

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Fix bugs in test regeneration #20

merged 1 commit into from
Nov 28, 2024

Conversation

reyjrar
Copy link
Owner

@reyjrar reyjrar commented Nov 28, 2024

When running t/bin/create_test_entry.pl --regenerate --auto, there was no processing of the options in the test file. This was due to my horrible choice to use package variables as configuration options. There's no easy way to "reset" them, so I punted on fixing it.

This new version of the script forks a child and then munges the variables in the child. This automagically "resets" the global state.

Use the new code to regenerate the t/data YAML. This just sorted keys, everything works as intended.

When running `t/bin/create_test_entry.pl --regenerate --auto`, there was
no processing of the `options` in the test file. This was due to my
horrible choice to use package variables as configuration options.
There's no easy way to "reset" them, so I punted on fixing it.

This new version of the script forks a child and then munges the
variables in the child. This automagically "resets" the global state.

Use the new code to regenerate the `t/data` YAML. This just sorted
keys, everything works as intended.
@reyjrar reyjrar merged commit 03feb42 into master Nov 28, 2024
14 checks passed
@reyjrar reyjrar deleted the bugfix/test-regeneration branch November 28, 2024 01:09
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