You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lau Brino (Jira)" <ji...@apache.org> on 2022/06/01 14:38:00 UTC

[jira] [Created] (SUREFIRE-2090) Xref link to source code with specified line number doesn't work. Missing "L" in anchor

Lau Brino created SUREFIRE-2090:
-----------------------------------

             Summary: Xref link to source code with specified line number doesn't work. Missing "L" in anchor
                 Key: SUREFIRE-2090
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2090
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Report Plugin
    Affects Versions: 3.0.0-M6
            Reporter: Lau Brino


Steps to reproduce:
 # Have a Java Maven project setup
 # In pom.xml, configure maven-surefire-report-plugin together with maven-jxr-plugin:3.2.0 in <reporting> section
 # have a failed test in you project.
 # generate html surefire report with xrefs to source code
 # 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 #)



--
This message was sent by Atlassian Jira
(v8.20.7#820007)