Skip to content

Add tests helper to create temp testing folders - #145

Merged
speziato merged 1 commit into
mainfrom
chore/isolated-config-folders-in-tests
May 6, 2026
Merged

speziato merged 1 commit into
mainfrom
chore/isolated-config-folders-in-tests

Conversation

@speziato

@speziato speziato commented May 5, 2026

Copy link
Copy Markdown
Collaborator

Summary 💡

Add a helper that creates a temporary folder to be used to host configuration files for go tests.

Description 📝

Running tests locally before this PR could fail on particular conditions (e.g.: if the real Solo collections of the user running the test already include one named "Orders"). With this change, all tests that require either the configuration, environments, or collections files now will use a temporary folder, so it will not use the real user's folders.

Breaking Changes 💔

None

Tests performed 🧪

  • Ran go test ./... -count=1 before and after the change

@speziato
speziato force-pushed the chore/isolated-config-folders-in-tests branch from aaef815 to 7f868dc Compare May 5, 2026 19:16
@speziato
speziato force-pushed the chore/isolated-config-folders-in-tests branch from 7f868dc to 5153de5 Compare May 5, 2026 19:33
@speziato
speziato marked this pull request as ready for review May 5, 2026 19:40
@speziato
speziato requested a review from matstech May 5, 2026 19:40
Comment thread internal/testutil/config.go Resolved
@speziato
speziato merged commit 37af43c into main May 6, 2026
7 checks passed
@speziato
speziato deleted the chore/isolated-config-folders-in-tests branch May 6, 2026 10:12
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.

2 participants