selenium: Can no longer limit the number of parallel sessions from JUnit 5
💥 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.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (14 by maintainers)
@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