Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-4158

Maven separate test output files should be shown

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      Maven may generate three files for each JUnit 3 test class:

      TEST-com.company.package.ClassName.xml - xml test result (message, stacktrace)
      com.company.package.ClassName.txt - text form of xml file
      com.company.package.ClassName-output.txt - text written to stdout while test was
      running.

      All output from maven is available on the Hudson site normally. But an option
      available in the POM for the surfire plugin allows removing output for the tests
      from that standard maven output and diverting it to the third file in the list
      above. This is in the <configuration> tag under the surefile <plugin> tag. The
      <redirectTestOutputToFile>true</redirectTestOutputToFile> setting does it.

      Current version of Hudson shows the test result. I don't know if it formats the
      xml or the txt version of it.

      The output.txt is not shown anywhere on the Hudson site. This text should be
      shown somewhere. It could be on the test results for the test but one text
      output file holds output for one test class NOT one test. Maybe put a link to it
      on the pages beside the name of the test class and/or a link to it on the page
      for each test within the test class.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : kohsuke
            Path:
            trunk/hudson/main/core/src/main/java/hudson/tasks/junit/SuiteResult.java
            trunk/hudson/main/core/src/test/java/hudson/tasks/junit/SuiteResultTest.java
            trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
            trunk/www/changelog.html
            http://jenkins-ci.org/commit/33862
            Log:
            [FIXED JENKINS-4158]
            JUnit report archiving now captures stdout of tests run in Surefire.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/tasks/junit/SuiteResult.java trunk/hudson/main/core/src/test/java/hudson/tasks/junit/SuiteResultTest.java trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java trunk/www/changelog.html http://jenkins-ci.org/commit/33862 Log: [FIXED JENKINS-4158] JUnit report archiving now captures stdout of tests run in Surefire.
            Hide
            dogfood dogfood added a comment -

            Integrated in hudson_main_trunk #181
            [FIXED JENKINS-4158]
            JUnit report archiving now captures stdout of tests run in Surefire.

            kohsuke :
            Files :

            • /trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
            • /trunk/hudson/main/core/src/test/java/hudson/tasks/junit/SuiteResultTest.java
            • /trunk/www/changelog.html
            • /trunk/hudson/main/core/src/main/java/hudson/tasks/junit/SuiteResult.java
            Show
            dogfood dogfood added a comment - Integrated in hudson_main_trunk #181 [FIXED JENKINS-4158] JUnit report archiving now captures stdout of tests run in Surefire. kohsuke : Files : /trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java /trunk/hudson/main/core/src/test/java/hudson/tasks/junit/SuiteResultTest.java /trunk/www/changelog.html /trunk/hudson/main/core/src/main/java/hudson/tasks/junit/SuiteResult.java
            Hide
            jglick Jesse Glick added a comment -

            You may want to check whether JENKINS-6516 automatically applies to this as well.

            Show
            jglick Jesse Glick added a comment - You may want to check whether JENKINS-6516 automatically applies to this as well.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              leemeador leemeador
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: