Skip to content

feat(cli): add --env and --env-file support to improve test coverage#384

Closed
tsvlgd wants to merge 2 commits intoGoogleCloudPlatform:mainfrom
tsvlgd:feat/env-vars-from-cli
Closed

feat(cli): add --env and --env-file support to improve test coverage#384
tsvlgd wants to merge 2 commits intoGoogleCloudPlatform:mainfrom
tsvlgd:feat/env-vars-from-cli

Conversation

@tsvlgd
Copy link

@tsvlgd tsvlgd commented Jul 6, 2025

Title

feat(cli): add --env and --env-file support to improve test coverage and .gitignore

Description

  • Adds support for passing environment variables via --env and --env-file flags to the CLI, enabling easier local testing of cloud functions that depend on runtime env vars.
  • Updates test assertions in test_cli.py for error message accuracy.
  • Updates .gitignore, tox.ini, and .coveragerc for platform-specific coverage support, especially for Windows.
  • No runtime code changes outside CLI/test/config improvements.
  • Addresses Ability to pass runtime environment variables for local testing #215.

tsvlgd added 2 commits July 6, 2025 16:05
…ve test coverage and .gitignore\n\n- Adds support for passing environment variables via --env and --env-file flags to the CLI, enabling easier local testing of cloud functions that depend on runtime env vars.\n- Updates test assertions in test_cli.py for error message accuracy.\n- Updates tox.ini and .coveragerc for platform-specific coverage, especially for Windows.\n- No runtime code changes outside CLI/test/config improvements.\n- Addresses #215.
@tsvlgd
Copy link
Author

tsvlgd commented Jul 9, 2025

Hi @josephlewis42 @dazuma @jskeet @chingor13 @garye, just following up on this PR — it adds --env and --env-file support to the CLI for easier local testing of env-dependent functions (#215).
Would appreciate any feedback or a review when possible.

@tsvlgd tsvlgd closed this by deleting the head repository Aug 4, 2025
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