Digital Media Web Blogs > Web

Create an XML Reporter for your Unit Tests


Related link: http://www.artima.com/suiterunner/xmlreporter.html

Artima SuiteRunner is a free open source testing toolkit for Java released under the Open Software License. You can use this tool with JUnit to run existing JUnit test suites, or standalone to create unit and conformance tests for Java APIs.

One advantage of using Artima SuiteRunner to run your JUnit tests is Artima SuiteRunner's reporter architecture. A reporter is an object that collects test results and presents them in some way to users. Artima SuiteRunner includes several build-in configurable reporters that can write to the standard error and output streams, files, and a graphical user interface. But Artima SuiteRunner also supports custom reporters. If you want to present results of tests in a different way, such as HTML, email, database, or log files, you can create your own custom reporter that presents results in those ways. This tutorial will show you how to create a custom reporter, using as an example a custom reporter that formats test results in XML.

Categories





AddThis Social Bookmark Button

Read More Entries by Bill Venners.

Recommended for You

Topics of Interest

Archives


 
 


Or, visit our complete archive.