ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54835] Classpath use seems to be broken in junit ant task?
Date Mon, 03 Jun 2013 23:39:33 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54835

--- Comment #10 from George <gjbaxter@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.

Mime
View raw message