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

Test everything related to config #77

Merged
merged 6 commits into from
Oct 22, 2024
Merged

Test everything related to config #77

merged 6 commits into from
Oct 22, 2024

Conversation

lippserd
Copy link
Member

Since I want to merge the support for environment variables, but am unhappy with the tests implemented there, I have taken the liberty to take over and restructure all tests related to config:

  • Both FromEnv() and FromYAMLFile() are tested in the config package, but also with our concrete config types database#Config and redis#Config.
  • Everything, i.e. also the validation for config and options, is now tested.

@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Oct 16, 2024
@lippserd lippserd requested a review from oxzi October 16, 2024 09:36
@lippserd lippserd merged commit c928ecf into FromEnv Oct 22, 2024
15 checks passed
@lippserd lippserd deleted the FromEnv-tests branch October 22, 2024 14:19
@yhabteab yhabteab added this to the 0.4.0 milestone Oct 22, 2024
@yhabteab yhabteab added enhancement New feature or request tests Adding tests to existing code labels Oct 22, 2024
@yhabteab yhabteab removed this from the 0.4.0 milestone Oct 22, 2024
lippserd added a commit that referenced this pull request Oct 22, 2024
Test everything related to config
@oxzi oxzi added this to the 0.4.0 milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR enhancement New feature or request tests Adding tests to existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants