Hi Evgeny,

thanks for the quick reply.

you wrote:
> On Friday, December 14, 2018 at 11:38:35 AM UTC+1, Andreas Sewe wrote:
>     is it possible at the moment to include the test sources/classes in the
>     reported generated by jacoco-maven-plugin:report?
> 
> 
> No, it is not possible with jacoco-maven-plugin:report

Worth filing a feature request? A couple of similar plugins [1, 2]
already have an option along the line of <includeTestSources>.

Briefly looking at the code [3, 4], the required code changes for this
feature should be fairly minimal.

>     AFAICT from the jacoco.exec, the test classes have probes inserted in
>     them, but the generated reports only show code from src/main/java (and
>     other registered source directories), but not from src/test/java.
> 
>     Is there some way to include them in the report? (Use case: Spotting
>     tests that are not executed, e.g., due to a missing @Test annotation or
>     not matching Maven's **Test.java naming convention.)
> 
> 
> To achieve this you can use JaCoCo Ant Task report
> ( https://www.jacoco.org/jacoco/trunk/doc/ant.html ) via maven-antrun-plugin

OK, will have a look at the Ant task for now.

Best wishes,

Andreas

[1]
<https://maven.apache.org/plugins/maven-checkstyle-plugin/check-mojo.html#includeTestSourceDirectory>
[2]
<https://spotbugs.github.io/spotbugs-maven-plugin/check-mojo.html#includeTests>
[1]
<https://github.com/jacoco/jacoco/blob/master/jacoco-maven-plugin/src/org/jacoco/maven/ReportSupport.java#L192>
[2]
<https://github.com/jacoco/jacoco/blob/master/jacoco-maven-plugin/src/org/jacoco/maven/ReportSupport.java#L277>

-- 
Dr. Andreas Sewe | [email protected] | +49 152 56342856
CQSE GmbH | Lichtenbergstrasse 8 | 85748 Garching | www.cqse.eu
Amtsgericht Muenchen | HRB 177678 | GF: F. Deissenboeck, M. Feilkas

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/fc4b4257-fa50-4148-7a42-f9f53a99564f%40cqse.eu.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to