Class XUnitConversionService

java.lang.Object
org.jenkinsci.plugins.xunit.service.XUnitConversionService
All Implemented Interfaces:
Serializable

public class XUnitConversionService extends Object implements Serializable
See Also:
  • Constructor Details

    • XUnitConversionService

      @Inject public XUnitConversionService(XUnitLog xUnitLog)
  • Method Details

    • convert

      public File convert(XUnitToolInfo xUnitToolInfo, File inputFile, File junitOutputDirectory) throws IOException
      Converts the inputFile into a JUnit output file
      Parameters:
      xUnitToolInfo - the xUnit info wrapper object
      inputFile - the input file to be converted
      junitOutputDirectory - the output parent directory that contains the JUnit output file
      Returns:
      the converted file
      Throws:
      org.jenkinsci.lib.dtkit.util.converter.ConversionException - when conversion errors occurs.
      IOException - when converted reports could not be created or written.