Class NUnitReportTransformer
java.lang.Object
hudson.plugins.nunit.NUnitReportTransformer
- All Implemented Interfaces:
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtransform(InputStream nunitFileStream, File junitOutputPath) Transform the nunit file into several junit files in the output path
-
Field Details
-
JUNIT_FILE_POSTFIX
- See Also:
-
JUNIT_FILE_PREFIX
- See Also:
-
NUNIT_TO_JUNIT_XSLFILE_STR
- See Also:
-
-
Constructor Details
-
NUnitReportTransformer
public NUnitReportTransformer()
-
-
Method Details
-
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:
transformin 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
-