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

Test failures do not display useful information in drilldown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: junit-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: Linux
    • Similar Issues:

      Description

      When I click on the "Latest Test Result (4 failures / +- 0)" link on the project
      page, then down into the failing package, class and tests the only output is:

      Error Message

      "
      Stacktrace

      Standard Output

        Attachments

          Activity

          Hide
          abayer Andrew Bayer added a comment -

          This is caused, I believe, by the lack of a check for null testData in
          hudson.tasks.junit.TestResultAction.getActions, along with HyperlinkingOutTag
          still being used with the stacktrace output, which has already been processed in
          the same way by hudson.tasks.junit.CaseResult.annotate. I've fixed this, but am
          currently writing a test case for it.

          Show
          abayer Andrew Bayer added a comment - This is caused, I believe, by the lack of a check for null testData in hudson.tasks.junit.TestResultAction.getActions, along with HyperlinkingOutTag still being used with the stacktrace output, which has already been processed in the same way by hudson.tasks.junit.CaseResult.annotate. I've fixed this, but am currently writing a test case for it.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/main/core/src/main/java/hudson/tasks/junit/TestResultAction.java
          trunk/hudson/main/core/src/main/resources/hudson/tasks/junit/CaseResult/index.jelly
          trunk/hudson/main/test/pom.xml
          trunk/hudson/main/test/src/test/java/hudson/tasks/junit/CaseResultTest.java
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=20835
          Log:
          [FIXED JENKINS-4257] Junit failure error messages and stacktraces should render properly in all cases now.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/main/core/src/main/java/hudson/tasks/junit/TestResultAction.java trunk/hudson/main/core/src/main/resources/hudson/tasks/junit/CaseResult/index.jelly trunk/hudson/main/test/pom.xml trunk/hudson/main/test/src/test/java/hudson/tasks/junit/CaseResultTest.java trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=20835 Log: [FIXED JENKINS-4257] Junit failure error messages and stacktraces should render properly in all cases now.
          Hide
          gbois Gregory Boissinot added a comment -

          adding myself as cc

          Show
          gbois Gregory Boissinot added a comment - adding myself as cc
          Hide
          gbois Gregory Boissinot added a comment -

          Verified in my use case. That's OK.

          Show
          gbois Gregory Boissinot added a comment - Verified in my use case. That's OK.

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              agenticarus agenticarus
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: