mapstruct with jacoco test Coverage

1,843 views
Skip to first unread message

kiran Tadikonda

unread,
Jun 8, 2017, 11:39:04 AM6/8/17
to mapstruct-users
Hi,
    I am using mapstruct for the first time and I really like the  way it works. I got small issue with unit test coverage reports I have written unit tests for mapper implementations since these are auto generated the Jacoco plugin via IntelliJ IDE couldn't show the line coverage properly.

I am using IntelliJ IDE + gradle + jacoco(for test covergae) + lombok +
1.2.0.Beta2 version of mapstruct

Could you please help me how to fix this or is there any other way to check line coverage of Implementations of Mappers


Many Thanks,

Kiran

Filip Hrisafov

unread,
Jun 8, 2017, 1:05:23 PM6/8/17
to mapstruct-users
Hi Kiran,

I am glad that you like how MapStruct works.

Regarding your question, I just tried the Jacoco coverage with IntelliJ and it works OK. I also tried setting it up via maven only and there it works OK. How does your setup look like?

Cheers,
Filip
Reply all
Reply to author
Forward
0 new messages