ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <Jon.Sk...@clearswift.com>
Subject RE: Support for JUnit 4?
Date Thu, 23 Feb 2006 08:38:06 GMT
> On Tue, 21 Feb 2006, Marian Petras <Marian.Petras@sun.com> wrote:
> 
> > I would like to know about the current status of Ant's support for 
> > JUnit 4.
> 
> The junit task currently only supports JUnit 3 style tests, 
> this means you must wrap your JUnit 4 tests in a 
> JUnit4TestAdapter in order to run them in Ant.  In order to 
> change that, Ant would need a different test runner, or at 
> least a different logic inside the test runner.

I would suggest a completely new task (or tasks) and that the jar file
is *not* supplied with stock Ant.
That way we could get round the nasty problem we've currently got of
requiring JUnit's jar file to be in the lib directory to get a stock Ant
install to work.

JUnitReport *may* be able to go unchanged - not sure. I've a sneaking
suspicion that there are changes between JUnit4 and JUnit3 in terms of
what it can record - there are ignored tests, but there's no longer a
difference between errors and failures. That's just a memory though, it
could be wrong.

I don't know how much work is involved in creating a new JUnit4 task or
tasks, but I'm happy to contribute when I have time. I'm not currently
working on JUnit4 tests, but I'm bound to at some time - and it would be
great if Ant supported it at that point! I can't imagine it's *that*
hard. I may not have enough time to do it all myself, but I'd be happy
to work on it with someone else.

I'm also already on the JUnit-devel mailing list - I'm happy to act as a
conduit, as it were.

Jon


Clearswift monitors, controls and protects all its messaging traffic in compliance with its
corporate email policy using Clearswift products.
Find out more about Clearswift, its solutions and services at http://www.clearswift.com

This communication is confidential and may contain privileged information intended solely
for the named addressee(s). It may not be used or disclosed except for the purpose for which
it has been sent. If you are not the intended recipient, you must not copy, distribute or
take any action in reliance on it. Unless expressly stated, opinions in this message are those
of the individual sender and not of Clearswift. If you have received this communication in
error, please notify Clearswift by emailing support@clearswift.com quoting the sender and
delete the message and any attached documents. Clearswift accepts no liability or responsibility
for any onward transmission or use of emails and attachments having left the Clearswift domain.

This footnote confirms that this email message has been swept by MIMEsweeper for Content Security
threats, including computer viruses.

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


Mime
View raw message