Skip to content
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

Issues while running multiple CucumberWithSerenity runners in parallel #2565

Closed
pogodins opened this issue Sep 30, 2021 · 6 comments
Closed

Comments

@pogodins
Copy link
Contributor

Since Cucumber with Junit can run only feature files in parallel I was looking for a solution to generate test runners for every scenario.
Test runners generation intself works fine with https://github.com/temyers/cucumber-jvm-parallel-plugin.

However, in case of multiple runners being executed in parallel, I'm getting issues with Serenity, namely:

@wakaleo could you please check if I configured properly test execution?
If I did it right, it would be really helpful to fix these issues as a lot of people would benefit from running scenarios in parallel.

When I'm able to execute multiple runners in parallel, I could write an insrtuction on how to generate runners and configure Serenity.

@wakaleo
Copy link
Member

wakaleo commented Oct 1, 2021

https://github.com/temyers/cucumber-jvm-parallel-plugin is no longer supported.

I've written up how to run Cucumber features in parallel in https://johnfergusonsmart.com/parallel-test-execution-with-cucumber-and-serenity-bdd/ - parallel scenario execution isn't supported.

@pogodins
Copy link
Contributor Author

pogodins commented Oct 1, 2021

Hi @wakaleo, thanks for your feedback!
My issue is not about cucumber plugin itself, and I know how to run feature files in parallel.

The problem for me is that Serenity doesn't work with parallel CucumberWithSerenity runners as I showed in my example project.
In example projects I created runners pointing to different scenarios manually (without any plugin).
What I expect is that manually created runners can be executed in parallel on the same machine.

Could you please suggest if I misconfigured my code or how we can fix Serenity to execute Cucumber runners in parallel?

@globalworming
Copy link
Collaborator

Last time i tried it seemed to work fine with multiple runners globalworming/serenity-cucumber-starter@875c326#diff-7fa6615a67c71eb463e49be76cbe914bcc440e85b4eec68ef80e3ae9b16ad967

@wakaleo
Copy link
Member

wakaleo commented Feb 12, 2022

This seems to work fine in 3.2.0 - please reopen if the issue still occurs for you.

@wakaleo wakaleo closed this as completed Feb 12, 2022
@pogodins
Copy link
Contributor Author

The behavior is still the same for multiple runners with Serenity 3.2.0. Repository with example code is updated by me now.
@wakaleo could you please share the configuration which worked for you?

@wakaleo
Copy link
Member

wakaleo commented Feb 25, 2022

The behavior is still the same for multiple runners with Serenity 3.2.0. Repository with example code is updated by me now. @wakaleo could you please share the configuration which worked for you?

See https://github.com/serenity-dojo/swaglabs-serenity-cucumber.git for an example of multiple Cucumber runners running in parallel with Serenity 3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants