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

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

    [ https://issues.apache.org/jira/browse/SUREFIRE-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545095#comment-17545095 ] 

Michael Osipov commented on SUREFIRE-2090:
------------------------------------------

Here it is: https://github.com/apache/maven-surefire/blob/master/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java#L611

> 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
>            Priority: Minor
>
> 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)