dcsimg
How to print string messages using JUNIT even if the test method is passing
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anshumaan_Rajshiva
Posted On:   Friday, September 10, 2004 07:52 AM

I want to know a way by which i can dump useful information in a test case using JUNIT even if it is passing. Till now, all the assert statements throws message only if the statement fails. I want to know is there a way to dump a message even if the assert statement passes??




If there is no such provision in the assert statements then is there a way in JUNIT by which i can dump any output message from the test case??



Any Help Will Be Appriciated...

Thanks

Anshumaan

Re: How to print string messages using JUNIT even if the test method is passing

Posted By:   Anonymous  
Posted On:   Saturday, September 11, 2004 02:04 AM

http://www.openfuture.de/Log4Unit/ or just use System.out.println...

I wonder why you would want to do this, though - the whole point of automating unit tests is that they don't need manual inspection as long as they don't fail!

About | Sitemap | Contact