Skip to content
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

pass environment variables and command line arguments to runner #282

Closed
sriv opened this issue Jan 11, 2016 · 4 comments
Closed

pass environment variables and command line arguments to runner #282

sriv opened this issue Jan 11, 2016 · 4 comments
Milestone

Comments

@sriv
Copy link
Member

sriv commented Jan 11, 2016

When launching Gauge, if user sets environment variables via command line or command line arguments, Gauge should pass it all to the language runners.

I.e. any command line argument that gauge does not understand should be passed on to the runner.

@haroon-sheikh
Copy link
Contributor

@sriv @mahendrakariya Can we please prioritise this ASAP? I've come across another scenario where this would really useful.

For example, the reports directory... when running on CI, I need to be able to dynamically set the reports directory depending on what's being run.

@mahendrakariya
Copy link
Contributor

@haroon-sheikh Can you please install yesterday's Gauge nightly build and try out your use case?

Usage:

gauge_reports_dir=newReportsDir mvn gauge:execute

@kaustavdm
Copy link
Contributor

Tested. This works for me.

Gauge environment variable in commandline

@mahendrakariya
Copy link
Contributor

For more details, please refer the Precedence of Environments section in the environment documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants