ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Ant test framework
Date Tue, 28 May 2002 16:57:58 GMT

----- Original Message -----
From: <dion@multitask.com.au>
To: "Ant Developers List" <ant-dev@jakarta.apache.org>
Sent: Monday, May 27, 2002 8:58 PM
Subject: Re: Ant test framework


>
> Steve,
>
> a build file test framework as a task?, e.g. the asserts are nested
> elements..... so for the AvailableTest:
>
> <buildfiletest buildFile="src/etc/testcases/taskdefs/available.xml">
>      <target name="test1">
>           <exception text="required argument not specified" />
>      </target>
>      <target name="test2">
>           <exception text="required argument not specified" />
>      </target>
>      <target name="test3">
>           <exception text="required argument not specified" />
>      </target>
>      <target name="test4">
>                <property name="test" value"${null}"/>
>      </target>
> </buildfiletest>
>
> is this what you mean?


yep. That is exactly what I mean.

If you look at some of the more recent test cases I've been doing, I've been
putting more and more of the logic into the task itself. For almsot all but
exception catching. you can use <condition> and <fail> to validate task
behaviour.





--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message