ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <jesse.gl...@sun.com>
Subject Re: <junit> and junit4 (long)
Date Thu, 01 Jun 2006 19:29:19 GMT
Stefan Bodewig wrote:
>> what would you drop?
> 
> The attributes that are shortcuts for formatters, printsummary and 
> showoutput.

For what it's worth, *every time* I write a <junit> usage by hand 
(rather than copying from a prior example), I forget to specify

<formatter type="plain" usefile="false"/>

and am confused when the task quietly exits with no summary. Not sure if 
anyone else has this problem. I agree that redundant attrs should be 
removed. Perhaps there should be no formatters by default, but if you 
forget to specify any at all, you get a descriptive error message with a 
hint on how to add at least console (logged) output. (Add a "silent" 
formatter for the special case that you really want no output and just 
care about pass/fail.)

And I would make usefile="false" the default for formatters, or rather 
have an optional file param, just like other tasks do.

> And I'd remove tempdir and always use ${java.io.tempdir}.

Might be a problem for scripts run on multiuser machines. I would use 
${java.io.tmpdir} as a default but permit it to be overridden, perhaps. 
IMHO no task should ever use ${basedir} as a default temp dir. People 
should not have to dump all kinds of weird entries into their .cvsignore 
files on Ant's account. If you need a non-default temp dir you can use 
e.g. ${basedir}/build or wherever you normally put generated files.

-J.

-- 
jesse.glick@sun.com  x22801  netbeans.org  ant.apache.org
       http://google.com/search?q=e%5E%28pi*i%29%2B1


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


Mime
View raw message