How do I get Emma or Cobertura, with Maven, to report coverage on source code in other modules?

前端 未结 5 922
孤城傲影
孤城傲影 2021-02-01 08:57

I have a multi-module Maven setup with Java code.

My unit tests, in one of the modules, exercise code in multiple modules. Naturally, the modules have inter-dependenc

5条回答
  •  感动是毒
    2021-02-01 09:53

    Generally, reports pertain to their specific module, however they can be aggregated,
    two approaches are:

    • maven-dashboard-plugin
    • sonar

    I would recommend that you try using sonar to do the report aggregation for you.

    See their public instance "nemo", to see the impressive capabilities that are offered.

提交回复
热议问题