You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2013/06/04 01:39:33 UTC
[Bug 54835] Classpath use seems to be broken in junit ant task?
https://issues.apache.org/bugzilla/show_bug.cgi?id=54835
--- Comment #10 from George <gj...@yahoo.com> ---
I'm still seeing this problem as of ant 1.9.1
I have a unit test flagged as such:
@RunWith(SpringJUnit4ClassRunner.class)
and an ant test target that contains
<junit printsummary="yes" haltonfailure="yes" fork="true" forkmode="once"
tempdir="${report.tests.dir}">
<classpath refid="test.classpath.run"/>
<formatter type="plain"/>
<batchtest fork="yes" todir="${report.tests.dir}">
<fileset dir="${src.tests.dir}">
<include name="**/*IntegrationTestCase*.java"/>
</fileset>
</batchtest>
</junit>
my classpath is built via ivy.
The ant test run does not honor the 'RunsWith' annotation. A stack trace
demonstrates this. Running in eclipse works fine.
--
You are receiving this mail because:
You are the assignee for the bug.