Using maven and testng - collab workaround

2007-11-13 Thread Erik Drolshammer
Hi! 
I got maven to run with testng 5.5 by using
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.4-collab-SNAPSHOT/version
/plugin

and 

dependency
groupIdorg.testng/groupId
artifactIdtestng/artifactId
version5.5/version
scopetest/scope
classifierjdk15/classifier
/dependency



However, I can't get the suiteXmlFile configuration option to work
properly. 

Can anyone point me to a testng.xml file that runs the same set of tests
as are run without any config? 

(I have searched the src for the surefire-plugin, but I couldn't find
the default testng.xml file.) 


Resources: 
http://maven.apache.org/plugins/maven-surefire-plugin/examples/testng.html
http://docs.codehaus.org/pages/viewpage.action?pageId=62120
http://maven.apache.org/plugins/maven-surefire-plugin/examples/testng.html

-- 
Regards
Erik Drolshammer 


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



Re: Using maven and testng - collab workaround

2007-11-13 Thread Erik Drolshammer
I reposted my question in a new thread. Search for subject Testng with 
testng.xml config file.


--
Regards
Erik Drolshammer

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



Re: Using maven and testng

2007-04-03 Thread Wayne Fay

I've run into exactly the same problem... Did you ever get any
resolution to this, Lee?

Wayne

On 11/22/06, Lee Bieber [EMAIL PROTECTED] wrote:

I'm trying to get testng working with maven. I've configured my pom.xml per the 
documentation
..
  dependency
groupIdorg.testng/groupId
artifactIdtestng/artifactId
version5.1/version
scopetest/scope
classifierjdk15/classifier
/dependency
/dependencies
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
configuration
suiteXmlFiles

suiteXmlFilesrc/test/java/com/trovix/dts/web/controller/web-controller-testng-functional.xml/suiteXmlFile
/suiteXmlFiles
/configuration
/plugin
/plugins


but when I run mvn test  I get the following exception:

---
 T E S T S
---
org.apache.maven.surefire.booter.SurefireExecutionException: null; nested 
exception is java.lang.NullPointerException: null
java.lang.NullPointerException
at 
org.apache.maven.surefire.report.AbstractTextReporter.testFailed(AbstractTextReporter.java:106)
at 
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:299)
at 
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:281)
at 
org.apache.maven.surefire.testng.TestNGReporter.onTestFailure(TestNGReporter.java:97)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1164)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1149)
at 
org.testng.internal.Invoker.handleConfigurationFailure(Invoker.java:191)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:170)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:223)
at org.testng.SuiteRunner.run(SuiteRunner.java:145)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
at 
org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:64)
at 
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
[INFO] 
[ERROR] BUILD FAILURE

Any ideas on what I am doing wrong??

Thanks




Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com


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



Using maven and testng

2006-11-22 Thread Lee Bieber
I'm trying to get testng working with maven. I've configured my pom.xml per the 
documentation
..
  dependency
groupIdorg.testng/groupId
artifactIdtestng/artifactId
version5.1/version
scopetest/scope
classifierjdk15/classifier
/dependency
/dependencies
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
configuration
suiteXmlFiles

suiteXmlFilesrc/test/java/com/trovix/dts/web/controller/web-controller-testng-functional.xml/suiteXmlFile
/suiteXmlFiles
/configuration
/plugin
/plugins


but when I run mvn test  I get the following exception:

---
 T E S T S
---
org.apache.maven.surefire.booter.SurefireExecutionException: null; nested 
exception is java.lang.NullPointerException: null
java.lang.NullPointerException
at 
org.apache.maven.surefire.report.AbstractTextReporter.testFailed(AbstractTextReporter.java:106)
at 
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:299)
at 
org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:281)
at 
org.apache.maven.surefire.testng.TestNGReporter.onTestFailure(TestNGReporter.java:97)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1164)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1149)
at 
org.testng.internal.Invoker.handleConfigurationFailure(Invoker.java:191)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:170)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:223)
at org.testng.SuiteRunner.run(SuiteRunner.java:145)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
at 
org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:64)
at 
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
[INFO] 
[ERROR] BUILD FAILURE

Any ideas on what I am doing wrong??

Thanks


 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com