Skip to content

Conversation

@0xObsidian
Copy link

This PR introduces environment configuration support across the SDK and fixes an issue where client tests were being skipped.

Description

  • Added scans for .env in current and parent directories
  • Added clean getters for all environment variables
  • Introduced graceful fallback to system environment variables
  • Added comprehensive test coverage for the introduced feature

Testing the introduced feat

Clone this pr branch and from the repo root, run:

go test -v ./config/env -run TestEnv

This commit introduces environment configuration support across
the SDK and fixes an issue where client tests were being skipped.

Description
-----------
- Added scans for .env in current and parent directories
- Added clean getters for all environment variables
- Introduced graceful fallback to system environment variables
- Added comprehensive test coverage for the introduced feature

Testing
-------
From the repo root, run:
```
go test -v ./config/env -run TestEnv
```
Description
-----------
- Replaced init with setupClientTest/setupTest functions
- Updated test calls with new setup functions

Build verified with:
```
make lint && make format
```
Test coverage unchanged
@0xObsidian
Copy link
Author

@calbera
Hi, feel free to let me know if you have any questions regarding this PR

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