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

Gary Gregory <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.user
Message-ID <CACZkXPx=dAyLeV01=ozW75HWHh_Or5w=ypnfS0afboAsiQ8ZGA@mail.gmail.com>
On Sun, Jun 8, 2025, 09:26 Slawomir Jaranowski <[email protected]>
wrote:

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


Thanks for the link. It sounds like the plug-in treats the -D test list as
a filter applied to whatever list order the underlying file systems gives
it...

Gary


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