RE: Re : Moving to TestNG JUnit4?

2010-06-09 Thread Siegmann Daniel, NY
I have similar experience. I upgraded a couple of projects to JUnit 4.8.1 (from 
3.x) in the past few months. Leaving the old tests as-is has worked fine, while 
allowing me to write new tests in the new style, just as you propose.

Seems like the best approach to me.

~Daniel Siegmann

-Original Message-
From: Julien HENRY [mailto:henr...@yahoo.fr] 
Sent: Wednesday, June 09, 2010 8:29 AM
To: Maven Developers List
Subject: Re : Moving to TestNG JUnit4?

> JUnit 4 apparently runs JUnit 3 tests out of the box

I can confirm that (starting from JUnit 4.7 if I remember correctly). I usually 
upgrade all my projects to JUnit 4. This way I can write new tests using JUnit 
4 style and keep old tests with JUnit 3 style.

My 2 cts

++

Julien



- Message d'origine 
> De : Mark Derricutt 
> À : Maven Developers List 
> Envoyé le : Mer 9 juin 2010, 14h 24min 56s
> Objet : Re: Moving to TestNG JUnit4?
> 
> JUnit 4 apparently runs JUnit 3 tests out of the box, so one could 
> feasibly
change the dependencies to JUnit 4 at least.  I understand the 
> reasons for
not physically changing old tests for the sake of change 
> tho.

Mark

-- 
Pull me down under...

On Tue, Jun 8, 2010 
> at 6:29 AM, Jason Chaffee <
> href="mailto:jchaf...@ebates.com";>jchaf...@ebates.com> wrote:

> 
> FYI, JUnit now supports concurrent running of tests.
>


  

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


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



RE: Re : Moving to TestNG JUnit4?

2010-06-09 Thread Martin Gainty

Dan and crew

i have seen junit configured as a Resource in the process phase by 
maven-remote-resources-plugin as in:


org.apache.maven.plugins
maven-remote-resources-plugin



process



junit:junit:4.7


${project.build.directory}/${build.finalName}
false





is this what you are referring or is there an alternate forking mechanism?


Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité


 
Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy 
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése 
nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi 
alkalmazhatósága sincs.  Mivel az electronikus üzenetek könnyen 
megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet 
tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Subject: RE: Re : Moving to TestNG JUnit4?
> Date: Wed, 9 Jun 2010 15:52:24 +0200
> From: daniel.siegm...@fja-us.com
> To: dev@maven.apache.org
> 
> I have similar experience. I upgraded a couple of projects to JUnit 4.8.1 
> (from 3.x) in the past few months. Leaving the old tests as-is has worked 
> fine, while allowing me to write new tests in the new style, just as you 
> propose.
> 
> Seems like the best approach to me.
> 
> ~Daniel Siegmann
> 
> -Original Message-
> From: Julien HENRY [mailto:henr...@yahoo.fr] 
> Sent: Wednesday, June 09, 2010 8:29 AM
> To: Maven Developers List
> Subject: Re : Moving to TestNG JUnit4?
> 
> > JUnit 4 apparently runs JUnit 3 tests out of the box
> 
> I can confirm that (starting from JUnit 4.7 if I remember correctly). I 
> usually upgrade all my projects to JUnit 4. This way I can write new tests 
> using JUnit 4 style and keep old tests with JUnit 3 style.
> 
> My 2 cts
> 
> ++
> 
> Julien
> 
> 
> 
> - Message d'origine 
> > De : Mark Derricutt 
> > À : Maven Developers List 
> > Envoyé le : Mer 9 juin 2010, 14h 24min 56s
> > Objet : Re: Moving to TestNG JUnit4?
> > 
> > JUnit 4 apparently runs JUnit 3 tests out of the box, so one could 
> > feasibly
> change the dependencies to JUnit 4 at least. I understand the 
> > reasons for
> not physically changing old tests for the sake of change 
> > tho.
> 
> Mark
> 
> -- 
> Pull me down under...
> 
> On Tue, Jun 8, 2010 
> > at 6:29 AM, Jason Chaffee <
> > href="mailto:jchaf...@ebates.com";>jchaf...@ebates.com> wrote:
> 
> > 
> > FYI, JUnit now supports concurrent running of tests.
> >
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
> 
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2

RE: Re : Moving to TestNG JUnit4?

2010-06-09 Thread Siegmann Daniel, NY
No, there's no need to "fork" for different unit tests. JUnit 4 will run the 
old tests just fine, along with the new. All I have done is update my 
dependency, like so:



  junit
  junit
  4.8.1
test


Existing tests run, and I can also create and run unit tests using new features 
(@Test annotation and such).

~Daniel

-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com] 
Sent: Wednesday, June 09, 2010 10:11 AM
To: dev@maven.apache.org
Subject: RE: Re : Moving to TestNG JUnit4?


Dan and crew

i have seen junit configured as a Resource in the process phase by 
maven-remote-resources-plugin as in:


org.apache.maven.plugins
maven-remote-resources-plugin



process



junit:junit:4.7


${project.build.directory}/${build.finalName}
false





is this what you are referring or is there an alternate forking mechanism?


Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité


 
Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy 
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése 
nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi 
alkalmazhatósága sincs.  Mivel az electronikus üzenetek könnyen 
megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet 
tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Subject: RE: Re : Moving to TestNG JUnit4?
> Date: Wed, 9 Jun 2010 15:52:24 +0200
> From: daniel.siegm...@fja-us.com
> To: dev@maven.apache.org
> 
> I have similar experience. I upgraded a couple of projects to JUnit 4.8.1 
> (from 3.x) in the past few months. Leaving the old tests as-is has worked 
> fine, while allowing me to write new tests in the new style, just as you 
> propose.
> 
> Seems like the best approach to me.
> 
> ~Daniel Siegmann
> 
> -Original Message-
> From: Julien HENRY [mailto:henr...@yahoo.fr] 
> Sent: Wednesday, June 09, 2010 8:29 AM
> To: Maven Developers List
> Subject: Re : Moving to TestNG JUnit4?
> 
> > JUnit 4 apparently runs JUnit 3 tests out of the box
> 
> I can confirm that (starting from JUnit 4.7 if I remember correctly). I 
> usually upgrade all my projects to JUnit 4. This way I can write new tests 
> using JUnit 4 style and keep old tests with JUnit 3 style.
> 
> My 2 cts
> 
> ++
> 
> Julien
> 
> 
> 
> - Message d'origine 
> > De : Mark Derricutt 
> > À : Maven Developers List 
> > Envoyé le : Mer 9 juin 2010, 14h 24min 56s
> > Objet : Re: Moving to TestNG JUnit4?
> > 
> > JUnit 4 apparently runs JUnit 3 tests out of the box, so one could 
> > feasibly
> change the dependencies to JUnit 4 at least. I understand the 
> > reasons for
> not physically changing old tests for the sake of change 
> > tho.
> 
> Mark
> 
> -- 
> Pull me down under...
> 
> On Tue, Jun 8, 2010 
> > at 6:29 AM, Jason Chaffee <
> > href="mailto:jchaf...@ebates.com";>jchaf...@ebates.com> wrote:
> 
> > 
> > FYI, JUnit now supports concurrent running of tests.
> >
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
> 
> 
> 

RE: Re : Moving to TestNG JUnit4?

2010-06-09 Thread Martin Gainty

relates more on how to initialise the operating environment for a 
Multi-threaded framework such as what is seen here 

http://gee.cs.oswego.edu/dl/papers/fj.pdf

 

if i were to incorporate the multi-thread framework routines into a plugin 
which would then be used to either exec/yield/sleep/join n number of threads 
i would first need to configure the startup parameters for the framework such 
as groupSize and/or seedValue (for the Fibonacci number)

 

thanks
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Subject: RE: Re : Moving to TestNG JUnit4?
> Date: Wed, 9 Jun 2010 21:25:35 +0200
> From: daniel.siegm...@fja-us.com
> To: dev@maven.apache.org
> 
> No, there's no need to "fork" for different unit tests. JUnit 4 will run the 
> old tests just fine, along with the new. All I have done is update my 
> dependency, like so:
> 
> 
> 
> junit
> junit
> 4.8.1
> test
> 
> 
> Existing tests run, and I can also create and run unit tests using new 
> features (@Test annotation and such).
> 
> ~Daniel
> 
> -Original Message-
> From: Martin Gainty [mailto:mgai...@hotmail.com] 
> Sent: Wednesday, June 09, 2010 10:11 AM
> To: dev@maven.apache.org
> Subject: RE: Re : Moving to TestNG JUnit4?
> 
> 
> Dan and crew
> 
> i have seen junit configured as a Resource in the process phase by 
> maven-remote-resources-plugin as in:
> 
> 
> org.apache.maven.plugins
> maven-remote-resources-plugin
> 
> 
> 
> process
> 
> 
> 
> junit:junit:4.7
> 
> ${project.build.directory}/${build.finalName}
> false
> 
> 
> 
> 
> 
> is this what you are referring or is there an alternate forking mechanism?
> 
> 
> Martin Gainty 
> __ 
> Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
> Vertraulichkeitanmerkung/Note de déni et de confidentialité
> 
> 
> 
> Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy 
> jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése 
> nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi 
> alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen 
> megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet 
> tartalma miatt.
> 
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
> dem Austausch von Informationen und entfaltet keine rechtliche 
> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
> wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
> 
> 
> 
> 
> 
> > Subject: RE: Re : Moving to TestNG JUnit4?
> > Date: Wed, 9 Jun 2010 15:52:24 +0200
> > From: daniel.siegm...@fja-us.com
> > To: dev@maven.apache.org
> > 
> > I have similar experience. I upgraded a couple of projects to JUnit 4.8.1 
> > (from 3.x) in the past few months. Leaving the old tests as-is has worked 
> > fine, while allowing me to write new tests in the new style, just as you 
> > propose.
> >