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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • junit-plugin
    • Jenkins ver. 2.105
      Version 64.0.3282.186 (Official Build) (64-bit)
      Mac OS 10.13.3

      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

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

              Created:
              Updated: