You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.
Describe the bug
Parallel execution doesn't work with junit-vintage-engine. I looked into it and it appears to be an issue with surefire and failsafe rather than Cucumber. However, maybe we could clarify this in the documentation.
Expected behavior
Tests being executed in parallel.
Context & Motivation
Parallel execution is a critical feature for many Cucumber users. I want to use JUnit 5 assertions and Cucumber. This works by adding junit-vintage-engine as a runtime dependency. However, this breaks parallel execution of tests with both surefire and failsafe.
From what I can tell this is a bug in surefire (or just a scenario that's not supported) but I think we could update the documentation to highlight that this will not work with JUnit5. Unless, of course, there is a workaround I'm missing.
Screenshots
If applicable, add screenshots to help explain your problem.
You may want to look at junit-team/junit5#2449. Or rather then using cucumber-junit and junit-vintage you can use cucumber-junit-platform-engine which does support parallel execution of scenarios. However until junit-team/junit5#2416 and junit-team/junit5#2623 are generally available JUnit 5 is not a feature complete replacemen for JUnit 4 so I'd forgo mentioning it in the general documentation.
What would be improved currently however is the explicit mention of JUnit 4 in the docs rather then JUnit in general.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Parallel execution doesn't work with
junit-vintage-engine
. I looked into it and it appears to be an issue with surefire and failsafe rather than Cucumber. However, maybe we could clarify this in the documentation.To Reproduce
See https://issues.apache.org/jira/browse/SUREFIRE-1918.
Expected behavior
Tests being executed in parallel.
Context & Motivation
Parallel execution is a critical feature for many Cucumber users. I want to use JUnit 5 assertions and Cucumber. This works by adding
junit-vintage-engine
as a runtime dependency. However, this breaks parallel execution of tests with both surefire and failsafe.From what I can tell this is a bug in surefire (or just a scenario that's not supported) but I think we could update the documentation to highlight that this will not work with JUnit5. Unless, of course, there is a workaround I'm missing.
Screenshots
If applicable, add screenshots to help explain your problem.
Your Environment
Additional context
Add any other context about the problem here.
https://issues.apache.org/jira/browse/SUREFIRE-1918
The text was updated successfully, but these errors were encountered: