Chaffangeon Brice | 10 Feb 18:55

testNG framework

Hi all,

In order to test our Seam components, I tried to use the testNG 
framework (http://testng.org/doc/), independently of Nuxeo.
The main advantage of testNG rather than jUnit is that Seam extends it 
to provide a "Seam Ready" framework.
There is an eclipse plugin that can be found here 
(http://testng.org/doc/download.html). It just works as the jUnit plugin.

The requirements for using testNG are (at least):
    - the testNG jar (can be used as a dependency with maven, look at my 
pom.xml)
    - a test class where methods to test are annoted with @Test
    - a testng.xml to run the test.

With eclipse plugin, no problem to run test (right click on the project 
-> Run As -> TestNG Suite) after installing the plugin (and updating 
maven sources).

But with maven (in a shell), I've got this :

#mvn clean test

[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Unnamed - TestNew:TestNew:jar:0.0-SNAPSHOT
[INFO]    task-segment: [clean, test]
[INFO] 
----------------------------------------------------------------------------
(Continue reading)

Eric Barroca | 12 Feb 01:05

Re: testNG framework

Hi,

On 10 févr. 07, at 18:58, Chaffangeon Brice wrote:
> pom.xml
> ---------------------------------------------------
>  <dependencies>
>    <dependency>
>      <groupId>org.testng</groupId>
>      <artifactId>testng</artifactId>
>      <version>5.5-jdk15</version>
>    </dependency>
>  </dependencies>

Hi, I think you should use something like this, because I don't se  
the version 5.5 in the plugin repository (only the 5.0):

   <dependency>
     <groupId>org.testng</groupId>
     <artifactId>testng</artifactId>
     <version>5.0</version>
     <scope>test</scope>
     <classifier>jdk15</classifier>
   </dependency>

Thanks,

EB.

--
Éric Barroca - Ex. VP of Operations - +33 6 21 74 77 64
(Continue reading)

Julien Anguenot | 12 Feb 09:18

Re: testNG framework

Eric Barroca wrote:
> Hi,
> 
> On 10 févr. 07, at 18:58, Chaffangeon Brice wrote:
>> pom.xml
>> ---------------------------------------------------
>>  <dependencies>
>>    <dependency>
>>      <groupId>org.testng</groupId>
>>      <artifactId>testng</artifactId>
>>      <version>5.5-jdk15</version>
>>    </dependency>
>>  </dependencies>
> 
> Hi, I think you should use something like this, because I don't se the
> version 5.5 in the plugin repository (only the 5.0):
> 
>   <dependency>
>     <groupId>org.testng</groupId>
>     <artifactId>testng</artifactId>
>     <version>5.0</version>
>     <scope>test</scope>
>     <classifier>jdk15</classifier>
>   </dependency>
> 
> 

I added the latest in our repository

http://svn.nuxeo.org/maven/repo/org/testng/testng/5.5-jdk15/
(Continue reading)


Gmane