Package hudson.plugins.nunit
Class NUnitReportTransformer
- java.lang.Object
-
- hudson.plugins.nunit.NUnitReportTransformer
-
- All Implemented Interfaces:
TestReportTransformer
,Serializable
public class NUnitReportTransformer extends Object implements TestReportTransformer, Serializable
Transforms a NUnit report into seperate JUnit reports. The NUnit report can contain several test cases and the JUnit report that is read by Jenkins should only contain one. This class will split up one NUnit report into several JUnit files.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
JUNIT_FILE_POSTFIX
static String
JUNIT_FILE_PREFIX
static String
NUNIT_TO_JUNIT_XSLFILE_STR
-
Constructor Summary
Constructors Constructor Description NUnitReportTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
transform(InputStream nunitFileStream, File junitOutputPath)
Transform the nunit file into several junit files in the output path
-
-
-
Field Detail
-
JUNIT_FILE_POSTFIX
public static final String JUNIT_FILE_POSTFIX
- See Also:
- Constant Field Values
-
JUNIT_FILE_PREFIX
public static final String JUNIT_FILE_PREFIX
- See Also:
- Constant Field Values
-
NUNIT_TO_JUNIT_XSLFILE_STR
public static final String NUNIT_TO_JUNIT_XSLFILE_STR
- See Also:
- Constant Field Values
-
-
Method Detail
-
transform
public void transform(InputStream nunitFileStream, File junitOutputPath) throws IOException, TransformerException, SAXException, ParserConfigurationException
Transform the nunit file into several junit files in the output path- Specified by:
transform
in interfaceTestReportTransformer
- Parameters:
nunitFileStream
- the nunit file stream to transformjunitOutputPath
- the output path to put all junit files- Throws:
IOException
- thrown if there was any problem with the transform.TransformerException
- TransformerExceptionSAXException
- SAXExceptionParserConfigurationException
- ParserConfigurationException
-
-