ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: [VOTE] release of ant 1.8.2
Date Fri, 17 Dec 2010 22:05:14 GMT
Hello Jesse,

this sounds like something which can be written as an antunit test.
so it can become part of our test suite.

Regards,

Antoine

On 12/17/2010 4:36 PM, Jesse Glick wrote:
> Jesse Glick<jesse.glick<at>  oracle.com>  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="T1.java">public class T1 extends
> junit.framework.TestCase" {
> public void testOK() {}
> public void testBad() {throw new RuntimeException("failed");}
> }</echo>
> <echo file="T2.java">public class T2 {
> @org.junit.Test public void ok() {}
> @org.junit.Test public void bad() {
> throw new RuntimeException("failed");}
> }</echo>
> <javac srcdir="." destdir="." includes="T1.java,T2.java" 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"/>
> </junit>
>
> 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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message