Skip to content

Support Preferences in TestEnv: Copy the preferences into the TestEnv. #97

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NHDaly
Copy link
Member

@NHDaly NHDaly commented Jun 5, 2025

This code is based on what Pkg does, as identified here: #59 (comment)

  • Check if there are LocalPreferences.toml in test/
    • If not, check in top-level package path
  • Copy whatever LocalPreferences.toml you find into the tmp env.

TODO:

  • Add tests
  • Extend this to the other versions, once we're happy with it.
    • including backport to 1.6?

I think this fixes #59.

This code is based on what Pkg does, as identified here:
#59 (comment)

- Check if there are LocalPreferences.toml in test/
    - If not, check in top-level package path
- Copy whatever LocalPreferences.toml you find into the tmp env.
@NHDaly NHDaly marked this pull request as draft June 5, 2025 21:11
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.

Supporting packages whose tests depend on Preferences
1 participant