Hi-
I must be doing something really stupid. I can't get ant to use junit 4
when invoked via the antrun plugin. My tests all fail because the test
runner can't find any tests (since none of the tests extend TestCase). If I
just run the tests via the ant script, the tests run and pass. But when I
run via maven (which antcall's the same ant script) the test don't run. Is
there a way to figure out why it seems that ant is only finding junit 3.x?
mvn -X doesn't give me ant -debug.
This is the configuration of maven-antrun-plugin:
<executions>
<execution>
<id>ant-tests</id>
<phase>test</phase>
<configuration>
<tasks>
<ant antfile="${basedir}/build.xml">
<target name="test"/>
</ant>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-junit</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.4</version>
</dependency>
</dependencies>
Thanks-
Zak
--
View this message in context:
http://www.nabble.com/running-junit-test-via-ant-using-antrun-plugin-tp24382461p24382461.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]