What to do about Cobertura in our mojo-parent

140 views
Skip to first unread message

Anders Hammar

unread,
Jan 19, 2020, 3:33:51 PM1/19/20
to mojoha...@googlegroups.com
Currently mojo-parent isn't buildable on Java 11 due to cobertura-m-p. We need to fix this so that mojo-parent is in a releasable state. [1]

As I see it we need to switch code coverage tool or possible even remove it entirely in the mojo-parent. I'd appreciate input so that we could fix this.


/Anders

Mirko Friedenhagen

unread,
Jan 20, 2020, 12:56:00 AM1/20/20
to mojoha...@googlegroups.com
Hello Anders, hello everyone,

I now for some years use jacoco instead of cobertura. Jacoco is well maintained and quite fast and used by e.g. IntelliJ (and as far as I know under the „brand“ Emma in Eclipse) and sonarqube as well by default.

Best Regards
Mirko Friedenhagen

Sent from my mobile

Am 19.01.20 um 21:33 schrieb Anders Hammar
> --
> You received this message because you are subscribed to the Google Groups "mojohaus-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mojohaus-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mojohaus-dev/CAKDUN1sk0Qn2-1BW-NsQJdsWY4JE5BM%2BU%3DqyWNVCG5FKhXNT-g%40mail.gmail.com.

Anders Hammar

unread,
Jan 20, 2020, 3:14:32 AM1/20/20
to mojoha...@googlegroups.com
Yes, I'm using JaCoCo also in my day job. But I'm rather in favor of just remove code coverage all together in the mojo-parent as most of our mojo testing is done via the invoker plugin. And that will not show upp in the code coverage which could then make people think that we have poor testing if they just read that report.

If anyone is against removing speak up now or I'll go ahead and remove it.

/Anders

Mirko Friedenhagen

unread,
Jan 20, 2020, 3:38:28 AM1/20/20
to mojoha...@googlegroups.com
Hello Anders,

including coverage achieved by invoker is often easily possible. Set `<invoker.mavenOpts>${argLine}</invoker.mavenOpts>`, that’s it. What do you think?

Regards
Mirko

Anders Hammar

unread,
Jan 20, 2020, 4:13:41 AM1/20/20
to mojoha...@googlegroups.com
Haven't tried that. But not sure what purpose this report serves; do anyone even look at it? We don't have code coverage reports for the apache maven plugins via the plugins parent.

Right now our mojos are, quite frankly, in a poor state. People are complaining about lack of bug releases and some of them don't even support Java 11. I, as well most others I guess, don't have much spare time to spend on this so I'd like to fix this without starting a new big task. Hence I'm in favor of removing the code coverage report. It can always be added in the future when we have a better solution, or it can be added in those mojos where we want it.

/Anders

Mark Prins

unread,
Jan 20, 2020, 12:00:16 PM1/20/20
to mojohaus-dev
I don't care much for code-coverage reports, but it's a nice-to-have if it covers all the tests.

I've been trying to get the dbunit-maven-plugin up-2-date  in https://github.com/mojohaus/dbunit-maven-plugin/pull/1 but stalled on Cobertura ploblems.

Mark

Mirko Friedenhagen

unread,
Jul 6, 2020, 5:14:11 AM7/6/20
to mojohaus-dev
Hello Anders,

I just configured jacoco in extra-enforcer-rules in a branch: https://github.com/mojohaus/extra-enforcer-rules/commit/0d77f3159c3ab8d05396abbb98324a60a1c1aaeb
Here coverage of unit tests and invoker tests are reported separately.
As we are talking about using github actions, it should be easy to upload the results to codecov: https://github.com/codecov/codecov-action


Regards
Mirko
> To unsubscribe from this group and stop receiving emails from it, send an email to mojoha...@googlegroups.com.

> To view this discussion on the web visit https://groups.google.com/d/msgid/mojohaus-dev/CAKDUN1sk0Qn2-1BW-NsQJdsWY4JE5BM%2BU%3DqyWNVCG5FKhXNT-g%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "mojohaus-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojoha...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mojohaus-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojoha...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mojohaus-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojoha...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages