How can we fetch parallel value from command line to JS file #1951
windyliu1118
started this conversation in
General
Replies: 1 comment 1 reply
-
|
The easiest way would be passing an extra environment variable when running tests in parallel. For example. You can then read this environment variable in your step implementation. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, in my code, I need to run different logic based on parallel running or non-parallel running.
So when I run the command
gauge run --env staging --tags "p1" --parallel -n=2 specs, how can I fetch the parallel running parameter from the command line, and then use it in Js file to determine which code to be executed?Beta Was this translation helpful? Give feedback.
All reactions