maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kumar Ampani <>
Subject Re: Running unit tests in a specific order
Date Thu, 07 Jan 2010 14:18:51 GMT
Can these tests in problem run by themselves standalone ?

If so, I am guessing you are running into problem where one test is setting
the data (like static or threadLocal etc) which is making the other tests to
You can run these tests in problem in a different execution set within the
surefire plugin.


On Thu, Jan 7, 2010 at 6:23 AM, Michel Barakat <> wrote:

> Hey folks,
> I am using the surefire plugin to run through JUnit tests.
> I am facing some cross-test dependencies issues and thus would like to
> investigate how tests perform when ran in a specific order.
> I have tried using the' test' flag, as in:
> mvn -Dtest=ATest,BTest,CTest test
> However, this does not necessarily execute the tests in the specified
> order (eg. CTest is executed before ATest or BTest).
> Is it possible to specify a strict order, through which unit tests
> should be executed?
> Cheers
> Michel
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message