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

前端 未结 5 820
孤城傲影
孤城傲影 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条回答
  •  -上瘾入骨i
    2021-02-01 09:32

    I found this pretty straightforward (although I did it a while ago, and may be rusty with details...

    My core project contains all of the modules. I use Cobertura to measure my test coverage. I am using Hudson as a Continuous Integration engine, and have the Cobertura plugin for Hudson.

    It has been working a treat for a while now.

    Good Luck !

提交回复
热议问题