Please upload your complete example project to github or similar, so someone can have a look at it. Am 19.02.2012 16:33 schrieb "Gogirl" <[email protected]>:
> My goal is to run different versions of Junit Framework work. Surefire > supports three different generations of JUnit: JUnit 3.8.x, JUnit 4.x > (serial provider) and JUnit 4.7 > http:// > http://maven.apache.org/plugins/maven-surefire-plugin/examples/junit.html > > My pom file has the following provider: > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <version>2.12</version> > <dependencies> > <dependency> > <groupId>org.apache.maven.surefire</groupId> > <artifactId>surefire-junit47</artifactId> > <version>2.12</version> > </dependency> > </dependencies> > </plugin> > > And dependencies: > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>3.8.1</version> > <scope>test</scope> > </dependency> > > I have no problems compiling and running TestNG. However the same compiled > Junit test will sometimes run and sometimes it wont. I have tried with > different types of hello world simple tests. I have tried with version > 3.8.1 > and version 4.8.1. Maven seems to have an executable jar file for both > versions in the repository. All my Test classes start with Test and they > are > in the requiered directory. > What I usually do is change the pom, save it, call mvn test and see if the > test is run. I remove the ones that dont work and add different ones in > hope > that they do. Typical compilation Compilation error occurs when using the > import statement: > Incompatible type > Cant find Symbol > > I am completely baffled that it has run at times and others not. And yes my > point is to make a comparison of different testing frameworks as Junit 4.x > is basically a new framework. > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Junit-ignored-by-Maven-tp5497051p5497051.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
