Re: Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-08-03 Thread Kristian Rosenvold
The ability to run multiple providers within a single execution is a fairly new feature, and I'm not surprised that works as expected. There are hundreds of blog posts out there that explain how to run testng/junit using multiple executions of surefire, which was the best available method at the

Re: Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-08-02 Thread Larry Shatzer, Jr.
On Mon, Aug 1, 2011 at 9:56 AM, Larry Shatzer, Jr. lar...@gmail.com wrote: I want to run with both JUnit and TestNG. By removing JUnit (and the tests that JUnit run), it ran just fine, as do the inverse, just JUnit and no TestNG. It is the combination of both of them. To help, instead of

Re: Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-08-02 Thread Larry Shatzer, Jr.
One last update. If I remove the execution sections that tell Surefire to run both TestNG and Junit, and put dependencies on the Surefire Plugin like so: dependencies dependency groupIdorg.apache.maven.surefire/groupId artifactIdsurefire-junit4/artifactId

RE: Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-08-02 Thread Martin Gainty
org.testng.xml.XmlSuite.setParallel(Z)Vparameter is string and returns void go here http://testng.org/doc/download.html and get the 6.1.1 testng /* Note this method in XMLSuite */ /** * Sets the parallel mode * @param parallel the parallel mode */ public void setParallel(String

Re: Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-08-01 Thread Larry Shatzer, Jr.
On Thu, Jul 28, 2011 at 6:04 AM, Martin Gainty mgai...@hotmail.com wrote: Larry- try loading both dependencies in your local repository and running offline with mvn -o (at least your dependencies will be found) did you check cobertura for errors? mvn -e -X cobertura:cobertura

RE: Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-07-28 Thread Martin Gainty
Larry- try loading both dependencies in your local repository and running offline with mvn -o (at least your dependencies will be found) did you check cobertura for errors? mvn -e -X cobertura:cobertura -Dquiet=true take junit out of the mix and run testng as solo Test dependency then

Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-07-27 Thread Larry Shatzer, Jr.
I did send this to the users list, but got no response in over a week. I know dev lists are not a magical escalation path, but this might be a better venue for this email. I have an example project at https://gist.github.com/1090223 This project has both a JUnit test and a TestNG test.