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

Mantas Gridinas <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.user
Message-ID <CAE9hW8SodSL5RYGdaS2goPyXzEUkrx9nqXXBVX4d6dVBSGZe8Q@mail.gmail.com>
Could it be that youre using default test executor, which isn't aware of
the test order property?

// Mantas

On Sun, Jun 8, 2025, 15:02 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]
>
>
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.