Re: Surefire test property does not run test in given order

Slawomir Jaranowski <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.user
Message-ID <CAGjJkv20JE=e7YJK_H043fUDqWRKcrrPMbsC5zBb06eRmUf5YA@mail.gmail.com>
Hi,

probably the same as in already reported issue
https://issues.apache.org/jira/browse/SUREFIRE-2041

On Sun, 8 Jun 2025 at 15:00, Gary Gregory <[email protected]> wrote:
>
> Hi All,
>
> I am trying to debug some tests in Commons Lang that seem to depend on
> side-effects from previous tests in a run. BUT when I run:
>
> mvn test -Dtest=T1,T2,T3
>
> Maven does NOT run T1, then T2, then T3; the order appears random.
>
> This behavior is unexpected and undesirable. It seems like a bug to me.
>
> Any ideas?
>
> Apache Maven 3.9.10 (5f519b97e944483d878815739f519b2eade0a91d)
> Maven home: /opt/homebrew/Cellar/maven/3.9.10/libexec
> Java version: 24.0.1, vendor: Homebrew, runtime:
> /opt/homebrew/Cellar/openjdk/24.0.1/libexec/openjdk.jdk/Contents/Home
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "15.5", arch: "aarch64", family: "mac"
>
> [INFO] --- surefire:3.5.3:test (default-test) @ commons-lang3 ---
>
> TY,
> Gary
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>


-- 
Sławomir Jaranowski
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.