Skip to content

[FEAT] Enhanced Testing#13

Merged
bbengfort merged 2 commits intomainfrom
tests
Mar 27, 2026
Merged

[FEAT] Enhanced Testing#13
bbengfort merged 2 commits intomainfrom
tests

Conversation

@bbengfort
Copy link
Copy Markdown
Contributor

@bbengfort bbengfort commented Mar 27, 2026

Scope of changes

Enhances testing of the confire package.

Type of change

  • new feature
  • bug fix
  • documentation
  • testing
  • technical debt
  • other (describe)

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have added new test fixtures as needed to support added tests

Note

Medium Risk
Medium risk because it changes validation gathering/flattening (including struct-level Validate() support) and adds new public error-introspection helpers that could affect error types/order observed by callers.

Overview
Adds a new contest.Env test helper to set/clear scoped environment variables with automatic restoration, along with new assert helpers (NotOk plus environment assertions) and README documentation for using them.

Expands validation behavior by allowing the root spec to implement validate.Validator, and by flattening/normalizing nested errors.ValidationErrors into a consistent list; the top-level confire package now exposes ValidationErrors() and IsValidationErrors() helpers to inspect those errors. Includes new end-to-end tests (confire_test.go) covering env loading, defaults, and multi-error validation output ordering.

Written by Cursor Bugbot for commit a5e0d8c. Configure here.

@bbengfort bbengfort merged commit f13c5e9 into main Mar 27, 2026
4 checks passed
@bbengfort bbengfort deleted the tests branch March 27, 2026 16:46
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