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

junit test fail stack traces should be htmlized

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: PC, OS: Windows XP

      hudson 1.4

      one of my tests fails like this:
      junit.framework.AssertionFailedError: expected:<DŽIUGO KALNAS, UAB> but
      was:<DŽIUGO KALNAS, UAB>

      but when i look at the page containing this trace i don't see strings.
      < should become >

          [JENKINS-101] junit test fail stack traces should be htmlized

          My understanding of Jelly was insufficient, rolled back this change.

          Kohsuke Kawaguchi added a comment - My understanding of Jelly was insufficient, rolled back this change.

          pukomuko added a comment -

          hudson 1.41
          hudson build 668

          nothing has changed. here is excerpt from junit test report page at:
          http://localhost:8080/hudson/job/project/lastSuccessfulBuild/testReport/
          lt.project.util.dbf/DbfReaderTests/testFirstColumn/

          <h1 class="result-regression">Regression</h1><p style="font-
          weight:bold">lt.project.util.dbf.DbfReaderTests.testFirstColumn</p><div
          style="text-align:right;">
          Failing for the past
          1 build
          (since #10)
          </div><pre>junit.framework.AssertionFailedError: expected:<DŽIUG
          KALNAS, UAB> but was:<DŽIUGO KALNAS, UAB>
          at
          lt.project.util.dbf.DbfReaderTests.testFirstColumn(DbfReaderTests.java:38)
          </pre>

          pukomuko added a comment - hudson 1.41 hudson build 668 nothing has changed. here is excerpt from junit test report page at: http://localhost:8080/hudson/job/project/lastSuccessfulBuild/testReport/ lt.project.util.dbf/DbfReaderTests/testFirstColumn/ <h1 class="result-regression">Regression</h1><p style="font- weight:bold">lt.project.util.dbf.DbfReaderTests.testFirstColumn</p><div style="text-align:right;"> Failing for the past 1 build (since #10) </div><pre>junit.framework.AssertionFailedError: expected:<DŽIUG KALNAS, UAB> but was:<DŽIUGO KALNAS, UAB> at lt.project.util.dbf.DbfReaderTests.testFirstColumn(DbfReaderTests.java:38) </pre>

          This should teach me about testing my "obvious" fix.

          Kohsuke Kawaguchi added a comment - This should teach me about testing my "obvious" fix.

          pukomuko added a comment -

          you ar fixing wrong lines
          this is not stdout or stderr
          this is stacktrace:

          https://hudson.dev.java.net/source/browse/hudson/hudson/views/hudson/tasks/
          junit/CaseResult/index.jelly?rev=1.5&view=markup

          <pre>${it.errorStackTrace}</pre>
          shoud become
          <pre><st:out value="${it.errorStackTrace}" /></pre>

          if st:out fixes this

          pukomuko added a comment - you ar fixing wrong lines this is not stdout or stderr this is stacktrace: https://hudson.dev.java.net/source/browse/hudson/hudson/views/hudson/tasks/ junit/CaseResult/index.jelly?rev=1.5&view=markup <pre>${it.errorStackTrace}</pre> shoud become <pre><st:out value="${it.errorStackTrace}" /></pre> if st:out fixes this

          Aha! Fixed in snapshot #672.

          Kohsuke Kawaguchi added a comment - Aha! Fixed in snapshot #672.

          pukomuko added a comment -

          hudson 680 OK

          pukomuko added a comment - hudson 680 OK

            Unassigned Unassigned
            pukomuko pukomuko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: