Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2090

Xref link to source code with specified line number doesn't work. Missing "L" in anchor

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:

      1. Have a Java Maven project setup
      2. In pom.xml, configure maven-surefire-report-plugin together with maven-jxr-plugin:3.2.0 in <reporting> section
      3. have a failed test in you project.
      4. generate html surefire report with xrefs to source code
      5. in that report locate failed test with link to test source code

      Expected behavior:

      Clicking on the link bring you to the exact line is test source where the test failed.

      Actual behavior:

      The link works, but the line number is ignored.

       

      The link on surefire report looks like this

      .../target/site/xref-test/com/soliteapay/portal/cloudterminal/CloudTerminalIT.html#121

      However correct URL looks like this

      .../target/site/xref-test/com/soliteapay/portal/cloudterminal/CloudTerminalIT.html#L121

      (notice the "L" right after #)

      Attachments

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              laubrino Lau Brino
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: