jacoco and test(ng): I'm getting quasi-empty test.exec and testng.exec files?

28 views
Skip to first unread message

Dávid Karnok

unread,
Aug 1, 2019, 5:51:19 AM8/1/19
to JaCoCo and EclEmma Users
Hi!

I'm experimenting with the Project Loom JDK 14 build (I know, it is not really supported yet) and managed to get many things working, except generating a jacoco report.


If I run 

gradlew clean test testng jacocoTestReport

the build/jacoco directory contains two files, test.exec and testng.exec, both have size 48 which implies there is no test coverage data at all. There are no errors printed.

Could there be a misconfiguration problem or is it the lack of JDK 14 support with 0.8.4 again?

Thank you for your time.

Evgeny Mandrikov

unread,
Aug 1, 2019, 6:14:41 AM8/1/19
to jac...@googlegroups.com
This is misconfiguration:


jacoco.includes

should be

jacoco.includes = ["hu/akarnokd/**"]

and not

jacoco.includes = ["**/hu/akarnokd/**"]


because last one matches only class names such as "foo/hu/akarnokd/Bar",
whereas your class names start with "hu/akarnokd". 

Following report is generated with correct includes:

report.png
 

 

Thank you for your time.

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/f2c2e6ac-4805-4f95-a88a-4151e9c6b548%40googlegroups.com.

Dávid Karnok

unread,
Aug 1, 2019, 6:23:35 AM8/1/19
to jac...@googlegroups.com
Thanks again, it works for me now!

You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/9UVNNNY5fqI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CAEPFu69jbmfH5%2BRbg9KTQVc76uUB%2B%2BnqDS3UR1USHiiQfaVG2w%40mail.gmail.com.


--
Best regards,
David Karnok
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages