I have added the dependency but for some reason Cobertura decided against loading any of my test classes from src/test/
. It just loads the classes from src/java/
and hence doesn't show the code coverage or anything. I checked the packages (all the classes, tests are in the same package) and the dependencies. Any help, pointers??
Here is my cobertura dependency plugin under maven-shade
configurations:
<cobertura.version>2.5.2</cobertura.version>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>${cobertura.version}</version>
</plugin>
I also have the same thing under maven-site
plugin