java - Maven multi module project with separate tests module - Code Coverage? -
java - Maven multi module project with separate tests module - Code Coverage? -
i have maven multi module project.
root: modulea/ # no unit tests moduleb/ # no unit tests modulec/ # no unit tests tests/ # unit tests, since depends on modules a, b , c all tests in single module called tests/ , code in separate modules.
is there way can code coverage?
i don't think either of jacoco or cobertura capable of reporting code coverage across modules. may want seek instrumenting compiled classes before running test coverage study rather relying on on-the-fly instrumentation.
see jacoco maven goal perform offline instrumentation.
java maven code-coverage jacoco-maven-plugin
Comments
Post a Comment