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 time these were written. Unfortunately they "outdated" as the new method you are using is much better. I'll see if I can include a sentence or two about this in the docs somewhere, maybe http://maven.apache.org/plugins/maven-surefire-plugin/examples/providers.html (Actually I'm thinking the docs need some restructuring...) Kristian On Tue, Aug 2, 2011 at 8:18 PM, Larry Shatzer, Jr. <lar...@gmail.com> wrote: > 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> > <groupId>org.apache.maven.surefire</groupId> > <artifactId>surefire-junit4</artifactId> > <version>${surefire.version}</version> > </dependency> > <dependency> > <groupId>org.apache.maven.surefire</groupId> > <artifactId>surefire-testng</artifactId> > <version>${surefire.version}</version> > </dependency> > </dependencies> > > I get the results I expect. > > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running com.company.JUnitTest > JUnit > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec > Flushing results... > Flushing results done > Cobertura: Loaded information on 1 classes. > Cobertura: Saved information on 1 classes. > > Results : > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 > > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running TestSuite > TestNG > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.311 sec > Flushing results... > Flushing results done > Cobertura: Loaded information on 1 classes. > Cobertura: Saved information on 1 classes. > > Results : > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org