Can no longer limit the number of parallel sessions from JUnit 5
See original GitHub issue💥 Regression Report
Can no longer limit the number of parallel sessions from JUnit 5 (v3.0.0-M5) Likely related to this ticket: https://github.com/junit-team/junit5/issues/2273
Last working Selenium version
Worked up to version: 4.0.0-alpha-3
Stopped working in version: 4.0.0-alpha-4
To Reproduce
This is with Maven Surefire plugin, but should be the same behavior for Gradle I think.
Run mvn test
with a test suite that has this plugin config in the pom.xml
file:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<properties>
<configurationParameters>
junit.jupiter.execution.parallel.enabled = true
junit.jupiter.execution.parallel.mode.default = concurrent
junit.jupiter.execution.parallel.config.strategy = fixed
junit.jupiter.execution.parallel.config.fixed.parallelism = 3
</configurationParameters>
</properties>
</configuration>
</plugin>
Expected behavior
Only 3 driver sessions should be running at a time, instead, all tests in the suite are executed.
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (14 by maintainers)
Top Results From Across the Web
Selenide 6.x.x: can no longer limit the number of parallel ...
The problem After bumping selenide to 6.1.1 (from 5.x.x) the parallelism limit in junit 5 is no longer working. It might be related...
Read more >JUnit 5 User Guide
It is generally recommended to omit the public modifier for test classes, test methods, and lifecycle methods unless there is a technical ...
Read more >Run parallel TestCafe tests | BrowserStack Docs
Here, No. of parallels is the parallel limit permitted by your account. The Parallel limit can be found in accounts profile. For example,...
Read more >Karate | Test Automation Made Simple.
And you don't need to create additional Java classes for any of the payloads ... Karate supports JUnit 5 and the advantage is...
Read more >Improve the Performance of Gradle Builds
Parallel builds can significantly improve build times; how much depends on ... running in the background so every Gradle build doesn't have to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dsmoons you can see my repo reproduction here: https://github.com/titusfortner/bug9359/blob/main/pom.xml#L70
When the se version is changed to 4 beta this code works as expected
Continuing discussion in #10113