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
access world parameters from setParallelCanAssign function #2065
Comments
Hi @seddik-st :) I am not sure to understand your question What would you like to do exactly? Would you have a more comprehensive example? And without that in mind, what are you trying to achieve exactly? What is the issue you are facing that you try to workaround with your idea? |
Hi @aurelien-reeves, Thank you for your quick reply. We are trying to setup a CI profile that run many workers in parallel however we need to add a custom assign that prevent some sets of scenarios from running in parallel as showed in this tutorial. It would be more elegant if we could pass those tags as world parameters in our CI profile (defined in the cucumber config file). I hope it's clearer now :) |
I am not sure it is possible to pass those tags as world parameters. @davidjgoss do you confirm? Regarding what you are trying to do, I am still puzzled:
|
So my understanding here is that we're talking about custom work assignment and specifically wanting to use the One thing we could do is add a third argument to the Honestly though that feels a bit overwrought and for this case I would probably just advise to set an environment variable in your CI and then pick that up from your support code, like: const myTagRule = atMostOnePicklePerTag(process.env.PARALLEL_ASSIGNMENT_TAGS.split(','); |
Hi @davidjgoss, Thank you for your answer. I agree with @aurelien-reeves to some degree, we can assign a special tag to each scenario that we want to prevent it from running in parallel (let's say @RunInSequence) However like this, we will have a lot of scenarios running under one worker which will slow down the execution time significantly. I'm not sure of the expected behavior please correct me if i'm wrong. |
Hello,
is there a way to pass those tags as world class parameters ?
const myTagRule = atMostOnePicklePerTag(["@tag1", "@tag2"]);
The text was updated successfully, but these errors were encountered: