-
Notifications
You must be signed in to change notification settings - Fork 103
Env in tests #1446
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
Env in tests #1446
Conversation
| import java.lang.reflect.Method; | ||
| import java.net.InetSocketAddress; | ||
| import java.nio.file.Path; | ||
| import java.nio.file.Paths; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why these imports? are they used?
|
|
||
| @Experimental | ||
| @Cfg("Use environment variables to define the paths required by External Drivers. " + | ||
| "This is necessary when the generated tests are executed on the same machine. " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on a different machine?
| String javaHome = System.getenv(envVarName); | ||
|
|
||
| if (javaHome == null || javaHome.isEmpty()) { | ||
| throw new RuntimeException("Cannot find "+envVarName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Environment variable does not seem to be defined: " + envVarName. also i guess it could be an IllegalArgumentException?
add options to use env variables needed in external driver