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

The hyperlink to a JUnit Test report subpage for a test group named "run" thinks it is the build information link

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: junit-plugin
    • Labels:
    • Environment:
      Jenkins ver. 2.105
      Version 64.0.3282.186 (Official Build) (64-bit)
      Mac OS 10.13.3
    • Similar Issues:

      Description

      Given this build definition:

      cat <<EOF > test.files.run.xml
      <?xml version='1.0' encoding='UTF-8'?>
      <testsuite hostname="iMac2016.local" name="test.files.run" tests="2" errors="0" failures="0" skipped="0" time="2.996">
              <properties></properties><testcase classname="test.files.run" name="constant-optimization.scala" time="2.888">
                  <system-out>
                  
                </system-out>
                  <system-err>
                    
                  </system-err>
                </testcase><testcase classname="test.files.run" name="groupby.scala" time="2.996">
                  <system-out>
                  
                </system-out>
                  <system-err>
                    
                  </system-err>
                </testcase>
      </testsuite>
      EOF
      
      cat <<EOF > test.files.run2.xml
      <?xml version='1.0' encoding='UTF-8'?>
      <testsuite hostname="iMac2016.local" name="test.files.run2" tests="2" errors="0" failures="0" skipped="0" time="2.996">
              <properties></properties><testcase classname="test.files.run2" name="constant-optimization.scala" time="2.888">
                  <system-out>
                  
                </system-out>
                  <system-err>
                    
                  </system-err>
                </testcase><testcase classname="test.files.run2" name="groupby.scala" time="2.996">
                  <system-out>
                  
                </system-out>
                  <system-err>
                    
                  </system-err>
                </testcase>
      </testsuite>
      EOF
      

      The test report page http://localhost:8080/job/junit-reporter-bug/3/testReport/test.files/

      The "run" link has leads to "http://localhost:8080/job/junit-reporter-bug/3/testReport/test.files/run/" but this displays "Build #3 / No Changes / Started By User etc".

      The "run2" link works as expected.

      In my broader data set, I only noticed this for the name "run". Perhaps the problem is the UI toolkit rather than pages generated by the junit-plugin, I can't spot a difference between the working and broken links when inspecting the HTML

        Attachments

          Activity

          Hide
          retronym retronym added a comment -

          I should note that we're generating the XML files from a different testing tool, hence odd looking classname and name attributes. I haven't tried to reproduce this with analagously named Junit classes.

          Show
          retronym retronym added a comment - I should note that we're generating the XML files from a different testing tool, hence odd looking classname and name attributes. I haven't tried to reproduce this with analagously named Junit classes.

            People

            • Assignee:
              Unassigned
              Reporter:
              retronym retronym
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: