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
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
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
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
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
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
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.