Couldn't you use a TestSuite to do this?  We use these to run tests in
specified orders.

http://junit.org/apidocs/junit/framework/TestSuite.html

Adam
<http://www.mobilvox.com>


On Thu, Jan 7, 2010 at 9:18 AM, Kumar Ampani <amp...@gmail.com> wrote:
> 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
> fail,
> You can run these tests in problem in a different execution set within the
> surefire plugin.
>
> Thanks
> Kumar
>
> On Thu, Jan 7, 2010 at 6:23 AM, Michel Barakat <bmic...@gmail.com> 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: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to