Class JUnitTestResultParser

  • All Implemented Interfaces:
    Serializable

    public class JUnitTestResultParser
    extends hudson.tasks.test.TestResultParser
    implements Serializable
    Class providing a TestResult by parsing the JUnit report.
    See Also:
    Serialized Form
    • Constructor Detail

      • JUnitTestResultParser

        public JUnitTestResultParser()
    • Method Detail

      • parseResult

        public hudson.tasks.junit.TestResult parseResult​(List<FilePath> xmlFiles,
                                                         TaskListener listener)
                                                  throws IOException,
                                                         InterruptedException
        Parses the given JUnit test report files and builds a TestResult object that represents them.
        Parameters:
        xmlFiles - the JUnit report files
        listener - the listener
        Returns:
        the TestResult instance
        Throws:
        IOException - signals that an I/O exception has occurred
        InterruptedException - the interrupted exception
      • getDisplayName

        public String getDisplayName()
        Overrides:
        getDisplayName in class hudson.tasks.test.TestResultParser
      • getTestResultLocationMessage

        public String getTestResultLocationMessage()
        Overrides:
        getTestResultLocationMessage in class hudson.tasks.test.TestResultParser