Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / July 2006

Tip: Looking for answers? Try searching our database.

junit and counting things in ant

Thread view: 
grasp06110 - 06 Jul 2006 00:17 GMT
Hi Everybody!

I am using ant to run my unit tests.  Is there a way I can get a count
of the tests that have been run or -- better yet -- a list of the tests
there were run?

Thanks,
John
grasp06110 - 06 Jul 2006 00:28 GMT
junit showoutput="false" printsummary="true"
failureproperty="testFailed" errorproperty="testFailed"

This echos the info I'm interested in to the screen but also generates
output files.  I wonder if there is a way to get the echo with out
generating the files?

Also the printsummary doesn't seem to turn off.  If I change showoutput
and printsummary both to false I still get the output files (same
behavior if I don't set either).  

Thanks again,
John
SMC - 06 Jul 2006 02:27 GMT
> junit showoutput="false" printsummary="true"
> failureproperty="testFailed" errorproperty="testFailed"
[quoted text clipped - 6 lines]
> and printsummary both to false I still get the output files (same
> behavior if I don't set either).  

Try the value "off" instead of "false".

Also see the "formatter" section of the JUnit ant task doco:

http://ant.apache.org/manual/OptionalTasks/junit.html


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.