karfkars
karfkars

Reputation: 4063

jacaco unit test coverage reports path and file name(as jacaco.exec)

I am running following maven command on jenkins

clean org.jacoco:jacoco-maven-plugin:prepare-agent install

The jacaco exec file created as shown below. target/coverage-reports/jacoco-int-test.exec

I would like to generate this file under following path, since all other Project use same conventions. target/jacoco.exec

I could not figureout why it is generated in this way and how to modify it as "target/jacoco.exec"

I will use this report in sonarqube analysis.

I would appriciate your helps, thanks in advance.

Upvotes: 1

Views: 10947

Answers (1)

Godin
Godin

Reputation: 10574

As per documentation of prepare-agent - destFile parameter controls location of output file, whose default is ${project.build.directory}/jacoco.exec which is exactly target/jacoco.exe. So check your POMs to find where it is modified to be target/coverage-reports/jacoco-int-test.exec.

Upvotes: 3

Related Questions