continuum-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Morales Martínez <>
Subject RE: JUnit vs. TestNG
Date Mon, 20 Apr 2009 01:21:01 GMT
I prefer TestNG, but I think we need to upgrade to version 5.9 due to a bug related to 'sequential'
option for  inheritance. This bug is fixed in 5.9, although it is not compulsory, it simplifies
the test and the facility to understand the flow. It is the comment of LoginTest class in
TestNG test:

 * Bug in TestNG. TESTNG-285: @Test(sequential=true) works incorrectly for classes with inheritance
 * Waiting 5.9 release. It's comming soon.

NOTE: I have updated TestNG test. View CONTINUUM-2073.

-----Original Message-----
From: Brett Porter []
Sent: lun 20/04/2009 2:59
Subject: Re: JUnit vs. TestNG

Yeah, just toss them in src/test/java together, Surefire will sort it
out if you aren't using a suite XML, and if you are they are easy
enough to add in there.

I definitely prefer TestNG in the long run for the configurability of
the tests using dependencies and groups, and so on.

- Brett

On 18/04/2009, at 7:13 AM, Wendy Smoak wrote:

> On Mon, Feb 16, 2009 at 10:24 AM, José Morales Martínez
> <> wrote:
>> I noticed that the test uses JUnit, version 3.8.1. As a suggestion,
>> I propose the possibility of using TestNG [1]. In TestNG we can
>> config groups, dependencies inter groups, order, timeOut, ... It
>> also allows the use of annotations.
>> It's a bit harder to configure, but it has its advantages.
>> [1]
> Is it time to make a decision on this?  I've been applying patches on
> both sides, and I have a feeling the tests probably overlap in
> functionality by now.  Brett mentioned that it's possible to run JUnit
> tests with TestNG, maybe that would be a first step towards
> consolidation?
> --
> Wendy

Este mensaje, y en su caso, cualquier fichero anexo al mismo,
 puede contener informacion clasificada por su emisor como confidencial
 en el marco de su Sistema de Gestion de Seguridad de la 
Informacion siendo para uso exclusivo del destinatario, quedando 
prohibida su divulgacion copia o distribucion a terceros sin la 
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje 
 erroneamente, se ruega lo notifique al remitente y proceda a su borrado. 
Gracias por su colaboracion.
This message including any attachments may contain confidential 
information, according to our Information Security Management System,
 and intended solely for a specific individual to whom they are addressed.
 Any unauthorised copy, disclosure or distribution of this message
 is strictly forbidden. If you have received this transmission in error,
 please notify the sender immediately and delete it.
View raw message