You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mattias Andersson (Jira)" <ji...@apache.org> on 2025/01/16 13:15:00 UTC

[jira] [Created] (SUREFIRE-2293) Surefire does not honor the forkCount user property

Mattias Andersson created SUREFIRE-2293:
-------------------------------------------

             Summary: Surefire does not honor the forkCount user property
                 Key: SUREFIRE-2293
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2293
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Plugin
    Affects Versions: 3.5.2
         Environment: Linux, Java 21
            Reporter: Mattias Andersson


Surefire does not honor the [forkCount|[https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#forkCount]] user property if forkCount is specified in the pom configuration.

I assumed that the user property set on the command line would override any configuration in the pom.
{code:java}
./mvnw -DforkCount=1 test {code}
Here is a simple example that reproduce the problem: https://github.com/attiand/surefire-problem.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)