-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Handle environment variables in YAML config files #685
Comments
@rbayliss, great suggestion 👍 Personally, I like the way Docker handles environment variables in their config files (YAML as well). What if we use the same approach in Phantomas YAML config files? This will be even more flexible then additional Example: url: ${HOST}/my-page |
Yeah, even better! |
Ah, just realized if this was supported for various configuration keys in the config file, it would also provide a way to change the report type on the fly too. Sweetness! |
Let's add the env variables handling in optimist-config-file.js + move it to a separate npm module (with tests). |
|
It would be a really great feature to have the base URL be separate from the URL of the test. The main use case for this is in having a single config file that you want to run on multiple environments of a site. In my config file, I'd like to be able to say:
Then on the command line, be able to set the base with something like:
Is this implemented, or possible? I'm happy to help out with a PR here, but I'm not sure where to start.
The text was updated successfully, but these errors were encountered: