I have a multi module project which gets compiled inside a location say, "abc/xyz/<<My_Development_Project>>/deploy/<<submodule>>"
My multi module development project has a module that uses shading and file relocation. I am using mvn clean clover:setup install to build my clover instrumented code. Each submodule then gets deployed in individual docker container through a docker_compose.yml file
My Test Code exists in same docker container inside a location say, "abc/xyc/<<My_Test_Project>>".
The build is successful. Each module now has instrument code inside
abc/xyz/<<My_Development_Project>>/<<submodule>>/target/clover/src-instrumented
abc/xyz/<<My_Development_Project>>/<<submodule>>/target/clover/clover.db
Then I am using mvn clover aggregate to merge all the databases of the modules.
The location of merged db is:
abc/xyz/<<My_Development_Project>>/target/clover/cloverMerge.db
Problem I am facing:
1. I am not deploying any clover.db to these containers, how will they capture the code coverage data ? How to do that ?
2. When I am trying to make a report using mvn clover:clover.
It can not find the source file. It says:
/<<My_Development_Project>>/submodule/src/com/....... does not exists.
How come I update my clover report to pick actual path of my project. It is picking relative path ?
When I run this in my local machine it works fine. How can I make it work in docker container inside a particular location : abc/xyz/<<My_Development_Project>> ?
My Pom.xml clover plugin looks like this:
<plugin>
<groupId>org.openclover</groupId>
<artifactId>clover-maven-plugin</artifactId>
<version>4.4.1</version>
<dependencies>
<dependency>
<groupId>org.openclover</groupId>
<artifactId>clover-maven-plugin</artifactId>
<version>4.4.1</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<configuration>
<generateHtml>true</generateHtml>
<jdk>1.8</jdk>
<includesTestSourceRoots>false</includesTestSourceRoots>
</configuration>
</plugin>
I have solved the problem on my own. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.