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
Test output gets mixed up when run in parallel #859
Comments
For simplicity would the following work? Allow parallelism via a CLI option such as |
Yes that would work. BUT.. if someone is using cucumber-js indirectly (like nightwatch-cucumber) is it going to work. This parallelism you are talking about will only be for cucumber-js, it won't work for others. Nightwatch has its own method of running tests in parallel. So the conclusion is - we should implement an approach so that it works for cucumber-js as well as any dependent packages. |
|
Okay, then we could expose the formatter option that tells cucumber-js that this is part of a parallel run and thus have the formatters act as if cucumber is running in parallel even if the parallelism is provided by something else |
by expose you mean mentioning in the README? |
By expose I mean adding a configuration option that can be used by users and/or tools. It would be documented in one the markdown files linked on the README |
sounds good. Are you planning to add a CLI option. |
There is already a CLI option for format options so it would be added to that |
The only formatter this could apply to is the progress formatter (since the pretty formatter was just removed). Instead of printing a character each time a test step finishes, it could be updated to print a single character per test case (analogous to scenario) or print all the step characters when the test case finishes. |
I'm also using A solution for me would be to have the progress indicators completely turned off and to only display the summary for each completed environment, ie;
However, I can't find a silent mode or a way to make cucumber stop printing some kind of output to the console. |
Hi, What is the state of this output mix? At least, a more detailed doc about formatting restrictions could help. |
@subhojit777 @localjo nightwatch-cucumber being deprecated in favor of nightwatch-api, and cucumber-js having a good support for parallel executions with recent version, is this still an issue? Could we close it? @fmagaldea your comment regarding cucumber outpout in parallel still apply? Does it concern nightwatch? If not, could we open a dedicated feature request for this with detailed example of how it is at the moment, and how it may be improved? |
@aurelien-reeves please see #1949. I have reported separate issue as you mentioned since we stumbled upon this (not nightwach related) in our project. |
Thanks So, closing this one |
Continued from #855
I am using
nightwatch-cucumber
to run the scenarios. The parallelism is achieved by gulp task runner. I am usinggulp.parallel
to run the tasks parallely.gulpfile.js
The text was updated successfully, but these errors were encountered: