philippefichet opened a new issue, #6885:
URL: https://github.com/apache/netbeans/issues/6885

   ### Description
   
   By default, the JaCoCo extension for Quarkus generates the coverage report 
(HTML/XML/CSV format) in `target/jacoco-report/`.
   Netbeans does not read `target/jacoco-report/jacoco.xml` to display the 
coverage in the source code or in `Code coverage > Show Report...` (right-click 
on the maven project).
   However, by changing the Quarkus default path via 
`quarkus.jacoco.report-location=target/site/jacoco` in the 
`application.properties`, everything seems to work fine in Netbeans.
   Here's an example of a simple project: 
https://github.com/philippefichet/netbeans-example-maven-quarkus-jacoco
   
   I have identified the 
`java/maven.coverage/src/org/netbeans/modules/maven/coverage/MavenCoverageProvider.java`
 file which seems to be responsible for finding the `jacoco.xml` file, but I 
don't feel able to make the most appropriate modification
   
   Could Netbeans be able to detect the report without having to modify the 
Quarkus default path?
   But what about the case where `quarkus.jacoco.report-location` is informed?
   
   PS: Everything works fine with a Gradle project (by default or by changing 
the `quarkus.jacoco.report-location` in the `application.properties file).
   
   ### Use case/motivation
   
   - View code coverage in Netbeans without having to modify the Quarkus 
`application.properties` file
   - View code coverage in Netbeans even if the value of 
`quarkus.jacoco.report-location` is set in the Quarkus `application.properties` 
file.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to