question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:18 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
titusfortnercommented, Jul 15, 2021

@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

0reactions
titusfortnercommented, Jan 2, 2022

Continuing discussion in #10113

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found