10 Feb 18:55
testNG framework
From: Chaffangeon Brice <brice.chaffangeon@...>
Subject: testNG framework
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2007-02-10 17:58:59 GMT
Subject: testNG framework
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2007-02-10 17:58:59 GMT
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)
RSS Feed