RE: maven-surefire-plugin 2.0 and 2.3 - init phase problem

2007-07-20 Thread vetalok

Thank you Jörg, I have decided to use  mechanism, but there is
another problems :)
How can I use the same classloader during few  phases
(surefire)?
I have experimented with 
 and other tags,
but maven-surefire-plugin 2.3 is still use different classloaders.

Jörg Schaible wrote:
> 
> vetalok wrote on Friday, July 20, 2007 2:49 PM:
> 
>> It seems since version 2.2 maven-surefire-plugin do not care about
>> order of tests:
>> (3)**/init/*Data*
>> (2)**/api/*1Test.java
>> (1)**/api/*2Test.java
>> How can I tell to maven to keep the order I writed?
>> ( mechanism is unsuitable)
>> Someone can help me?
> 
> You should not write tests that rely on a special execution sequence. No
> environment running unit tests will ever assure this.
> 
> - Jörg
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/maven-surefire-plugin-2.0-and-2.3---init-phase-problem-tf4116244s177.html#a11709094
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: maven-surefire-plugin 2.0 and 2.3 - init phase problem

2007-07-20 Thread Jörg Schaible
vetalok wrote on Friday, July 20, 2007 2:49 PM:

> It seems since version 2.2 maven-surefire-plugin do not care about
> order of tests:
> (3)**/init/*Data*
> (2)**/api/*1Test.java
> (1)**/api/*2Test.java
> How can I tell to maven to keep the order I writed?
> ( mechanism is unsuitable)
> Someone can help me?

You should not write tests that rely on a special execution sequence. No 
environment running unit tests will ever assure this.

- Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven-surefire-plugin 2.0 and 2.3 - init phase problem

2007-07-20 Thread vetalok

It seems since version 2.2 maven-surefire-plugin do not care about order of
tests:
(3)**/init/*Data*
(2)**/api/*1Test.java
(1)**/api/*2Test.java
How can I tell to maven to keep the order I writed?
( mechanism is unsuitable)
Someone can help me?


vetalok wrote:
> 
> Hello experts!
> My tests passed ok with maven-surefire-plugin 2.0
> ***
> ---
>  T E S T S
> ---
> MyInitializationTest
> ***
> With maven-surefire-plugin 2.3 I have another behavior:
> ***
> MyInitializationTest
> ---
>  T E S T S
> ---
> ***
> That is why I have many problems.
> Why MyInitializationTest executes before  "T E S T S" with 2.3 plugin
> version?
> How can I configure this plugin to have the behaviour I showed above
> (MyInitializationTest must be executed after  "T E S T S")?
> Thanks.
> 

-- 
View this message in context: 
http://www.nabble.com/maven-surefire-plugin-2.0-and-2.3---init-phase-problem-tf4116244s177.html#a11707502
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven-surefire-plugin 2.0 and 2.3 - init phase problem

2007-07-20 Thread vetalok

Hello experts!
With 2.1 version it works, with 2.2 it does not
My tests passed ok with maven-surefire-plugin 2.1
***
---
 T E S T S
---
MyInitializationTest
***
With maven-surefire-plugin 2.2 I have another behavior:
***
MyInitializationTest
---
 T E S T S
---
***
That is why I have many problems.
Why MyInitializationTest executes before  "T E S T S" with 2.2 plugin
version?
How can I configure this plugin to have the behaviour I showed above
(MyInitializationTest must be executed after  "T E S T S")?
Thanks.


-- 
View this message in context: 
http://www.nabble.com/maven-surefire-plugin-2.0-and-2.3---init-phase-problem-tf4116244s177.html#a11705913
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven-surefire-plugin 2.0 and 2.3 - init phase problem

2007-07-20 Thread vetalok

Hello experts!
My tests passed ok with maven-surefire-plugin 2.0
***
---
 T E S T S
---
MyInitializationTest
***
With maven-surefire-plugin 2.3 I have another behavior:
***
MyInitializationTest
---
 T E S T S
---
***
That is why I have many problems.
Why MyInitializationTest executes before  "T E S T S" with 2.3 plugin
version?
How can I configure this plugin to have the behaviour I showed above
(MyInitializationTest must be executed after  "T E S T S")?
Thanks.
-- 
View this message in context: 
http://www.nabble.com/maven-surefire-plugin-2.0-and-2.3---init-phase-problem-tf4116244s177.html#a11705635
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]