How to get the report of Tests run in junit
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anoop_Gopalakrishnan
Posted On:   Wednesday, June 1, 2005 01:47 PM

Hi,

I am using HtmlUnit over junit to run the tests using a test
suite . Am new to junit. I am running it in command line
using the java junit.textui.TestRunner command. How can i get to know
which test passed and which failed? i need junit to update
an ms-access database after running if a test passed. is
there any good tool that would help? if yes please do let
me know how to use it.


Thanx in advance,
Anoop

Re: How to get the report of Tests run in junit

Posted By:   Stephen_Smith  
Posted On:   Monday, July 25, 2005 07:20 AM

I'm not sure if any commercial or open-source solutions already address the problem of populating a DB with JUnit output, but it's relatively straightforward. When executing a TestCase it's possible to obtain a reference to a related TestResult object. The information associated with the TestResult could then be stored in a DB via JDBC.

Aside from storing test results in a DB, it's possible to use JUnit plugins to generate text- or XML-based support, such as that provided by Ant.
About | Sitemap | Contact