简体   繁体   中英

How can I set-up Maven to create Jacoco coverage for tests for source code another module?

I have a multi-module Maven project. Many of the tests are in the conventional directory ( src/test/java ) but about 60% are in single module.

By default, Jacoco does not create coverage for those tests.

I'd like the tests in the single module to contribute to coverage.

Nb. We collects coverage in Sonar.

要解决此问题,请设置以下配置项:

<inclNoLocationClasses>true</inclNoLocationClasses>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM