hudson.plugins.nunit
Class NUnitReportTransformer

java.lang.Object
  extended by hudson.plugins.nunit.NUnitReportTransformer
All Implemented Interfaces:
TestReportTransformer

public class NUnitReportTransformer
extends java.lang.Object
implements TestReportTransformer

Transforms a NUnit report into seperate JUnit reports. The NUnit report can contain several test cases and the JUnit report that is read by Hudson should only contain one. This class will split up one NUnit report into several JUnit files.


Field Summary
static java.lang.String JUNIT_FILE_POSTFIX
           
static java.lang.String JUNIT_FILE_PREFIX
           
static java.lang.String NUNIT_TO_JUNIT_XSLFILE_STR
           
 
Constructor Summary
NUnitReportTransformer()
          Creates a nunit report transformer.
 
Method Summary
 void transform(java.io.InputStream nunitFileStream, java.io.File junitOutputPath)
          Transform the nunit file into several junit files in the output path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JUNIT_FILE_POSTFIX

public static final java.lang.String JUNIT_FILE_POSTFIX
See Also:
Constant Field Values

JUNIT_FILE_PREFIX

public static final java.lang.String JUNIT_FILE_PREFIX
See Also:
Constant Field Values

NUNIT_TO_JUNIT_XSLFILE_STR

public static final java.lang.String NUNIT_TO_JUNIT_XSLFILE_STR
See Also:
Constant Field Values
Constructor Detail

NUnitReportTransformer

public NUnitReportTransformer()
                       throws javax.xml.transform.TransformerException,
                              javax.xml.parsers.ParserConfigurationException
Creates a nunit report transformer.

Throws:
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
Method Detail

transform

public void transform(java.io.InputStream nunitFileStream,
                      java.io.File junitOutputPath)
               throws java.io.IOException,
                      javax.xml.transform.TransformerException,
                      org.xml.sax.SAXException
Transform the nunit file into several junit files in the output path

Specified by:
transform in interface TestReportTransformer
Parameters:
nunitFileStream - the nunit file stream to transform
junitOutputPath - the output path to put all junit files
Throws:
java.io.IOException - thrown if there was any problem with the transform.
javax.xml.transform.TransformerException
org.xml.sax.SAXException


Copyright © 2007. All Rights Reserved.