ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <>
Subject Re: [VOTE] release of ant 1.8.2
Date Fri, 17 Dec 2010 21:36:39 GMT
Jesse Glick <jesse.glick <at>> writes:
> Cannot add a test for it easily without relying on JDK 5 to build.

Manual test case (retyped by hand so please excuse any typos):

<property name="junit.jar" location="..."/>
<echo file="">public class T1 extends
junit.framework.TestCase" {
public void testOK() {}
public void testBad() {throw new RuntimeException("failed");}
<echo file="">public class T2 {
@org.junit.Test public void ok() {}
@org.junit.Test public void bad() {
throw new RuntimeException("failed");}
<javac srcdir="." destdir="." includes="," source="6"
classpath="${junit.jar}" includeantruntime="false"/>
<junit fork="true" printsummary="true">
<classpath path=".:${junit.jar}"/>
<test name="T1" methods="testOK"/>
<test name="T2" methods="ok"/>

Expected: both test suites pass with one method each.
Actual 1.8.2 proposed build: T1 passes with one method;
T2 fails in bad() which is supposed to be skipped.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message