jacoco code coverage dump inside a container is throwing an error connection refused

34 views
Skip to first unread message

Raviteja. Yakkala

unread,
Oct 5, 2020, 6:08:27 PM10/5/20
to JaCoCo and EclEmma Users
Hi there,

I am trying to dump code coverage while running tests inside a container. But I am getting connection refused while dumping. Can some one pl take a look and help

JVM command changes in container:

-javaagent:lib/org.jacoco.agent-0.8.4-runtime.jar=port=6300,destfile=/tmp/target/jacoco-ft.exec,output=tcpserver,address=* 

Functional Test pom changes:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.3</version>
<configuration>
<address>IP address of container</address>
<destFile>/tmp/target/jacoco-ft.exec</destFile>
<port>6300</port>
<reset>false</reset>
<append>true</append>
</configuration>
<executions>
<execution>
<phase>post-integration-test</phase>
<goals>
<goal>dump</goal>
</goals>
</execution>
<execution>
<id>jacoco-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>/tmp/target/jacoco-ft.exec</dataFile>
<outputDirectory>/tmp/target/my-report</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Reply all
Reply to author
Forward
0 new messages