ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <pa...@asert.com.au>
Subject Re: [ANN] Apache AntUnit 1.0 Beta 1 Released
Date Sun, 24 Sep 2006 05:20:36 GMT
> The Ant Team is proud to announce the first Beta release of
> Apache AntUnit 1.0.

I added a patch to bug 28883 (regex condition for Ant):

 http://issues.apache.org/bugzilla/show_bug.cgi?id=28883

Which would allow AntUnit to have an additional assertion:

 <target name="testTstampFormat">
   <tstamp>
     <format property="today" pattern="dd-MM-yyyy"/>
   </tstamp>
   <au:assertMatches string="${today}"
     pattern="[0123]\d-[01]\d-[12]\d{3}"/>
 </target>

Useful for checking dates, urls, pathnames, passwords,
email addresses, globbing etc. I guess typically more for
an acceptance flavour of test than a strict unit test but
useful none the less.

It requires an extra condition in core Ant but if there
is no interest in that change I guess the condition could
be packaged up as part of AntUnit. I guess an assertDoesntMatch
would also be an easy extension.

Cheers, Paul. 

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


Mime
View raw message