Hi, the JaCoCo xml report is created without using source code. For this report we actually don’t know where the source code is neither. The source code is only loaded for the HTML report.
Cheers, -marc > On 24. Nov 2021, at 11:04, Ullrich Hafner <ullrich.haf...@gmail.com> wrote: > > I'm currently trying to improve the visualization of JaCoCo reports in > Jenkins (https://github.com/jenkinsci/code-coverage-api-plugin/). The plugin > reads a JaCoCo XML report and shows the details in Jenkins. While parsing the > JaCoCo XML reports I noticed that packages (and so classes) are qualified > only by the actual package path that starts right after the *source code > path*. I.e., `package="/io/jenkins/"` and not > `package="src/main/java/io/jenkins/"` or > `package="/absolute/path/to/io/jenkins/"`. Is there a way to include the > source code path in the XML file as well (or use the absolute path)? > Otherwise I need to guess where the actual source code is stored (or I need > to duplicate the JaCoCo option of specifying a source code path manually). > > -- > You received this message because you are subscribed to the Google Groups > "JaCoCo and EclEmma Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jacoco+unsubscr...@googlegroups.com > <mailto:jacoco+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/88cfbbd8-72cd-4b02-868f-8b4e974ec003n%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/88cfbbd8-72cd-4b02-868f-8b4e974ec003n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/97A31987-51E5-43BB-8849-8ADF1D2D6CC5%40mountainminds.com.