-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 #1949
Comments
How does look the output without the pretty-formatter, but with a built-in formatter? |
That's pretty much impossible to combine with realtime feedback. If you don't need realtime feedback have you considered using other formatters such as the html formatter? |
@aurelien-reeves It seems to be working fine from what I see. And from what I understand, there is no built-in formatter which simply prints out step by step so it seems to confirm that it's related to I'm closing this issue then and moving it to https://github.com/cucumber/cucumber-js-pretty-formatter/. Thanks for your help!
@mpkorstanje In realtime (meaning print as fast as something is logged) no, but I can imagine with some kind of buffering like, wait for all test steps and print when test is done it would be doable and kind of close to realtime. But then it would be printing not step by step but entire scenarios 🤔 I get your point on this 👍
That's a reasonable suggestion 👍 I mean, we need some text-like output on CI so HTML won't work here, but maybe something which shows only failed tests at the end of a run. |
👓 What did you see?
When tests are run with
--parallel
flag, the output (for example, steps description) gets mixed.When run without
--parallel
option:With
--parallel
you can see that scenarios (and steps) are printed as they come from different workers and get mixed:✅ What did you expect to see?
I would expect that each Scenario (or entire Feature, so could be multiple scenarios) would be printed as a whole, one after another.
📦 Which version are you using?
🔬 How could we reproduce it?
I'm coming from Scramjet and we are using Cucumber for running BDD tests in multiple repos. The screenshots are based on tests from https://github.com/scramjetorg/transform-hub. You can reproduce it by running tests from this repo:
Please keep in mind you may need some stuff from setup steps too.
🤔 Anything else?
There is already a similar issue reported - #859 but it's related to
nightwatch-*
3rd-party which we are not using, so, for us, it seems to be Cucumber (or it's formatter) related issue.I'm happy to provide more details/context if needed.
The text was updated successfully, but these errors were encountered: