ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Goldstein <sdgol...@mailandnews.com>
Subject Re: junit Questions
Date Sat, 01 Dec 2001 22:42:09 GMT
I've done some research on writing my own JUnit formatter in order to print all
of the results at the end of the batch test.  It appears that each .class or
.java file in a batch test is treated as a single JUnitTest instance.  Each
JUnitTest instance represent a test suite.  After a test suite ends, the
Formatter.endTestSuite() method is called to print the results.

I could write a formatter that continues to maintain the results of all test
suites (i.e. the entire batch test) in memory and print it all out at the very
end.  Unfortunately, I don't see any way to signal the formatter that the
JUnitTask has ended.  Is there a way to do this?

Thank you for the help.

Scott

Erik Hatcher wrote:

> ----- Original Message -----
> From: "Scott Goldstein" <sdgoldst@MailAndNews.com>
> > I have two questions regarding the junit tasks.
> >
> > 1.  When running a batch test, is it at all possible to print all of the
> > results at the end of the test.  I'm interested in printing the number of
> > successful tests and what errors/failures occurred.java (i.e. something
> > similar to the results displayed when using junit.textui.TestRunner).
>
>


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


Mime
View raw message