java - Jacoco tcpserver reset dump -


i'm trying coverage data remotely jacoco agent , reset execution info on server reset=true;

jacoco java agent on server:

java_options="${java_options} -javaagent:applications/jacoco/lib/jacocoagent.jar=output=tcpserver,address=*,port=36320" 

ant task on local machine:

<project name="ant report build jacoco" default="get_data" xmlns:jacoco="antlib:org.jacoco.ant">      <property name="result.exec.file" value="test_data.exec"/>     <property name="server" value="my-server.com" />     <property name="port" value ="36320" />      <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">       <classpath path="jacoco\lib\jacocoant.jar"/>     </taskdef>          <target name="get_data">       <jacoco:dump address="${server}" port="${port}" reset="true" append="false" destfile="${result.exec.file}"/>     </target>  </project> 

my problem in resetting execution info after dump. if actions on server , call ant target "get_data" twice,deleting test_data.exec file between executions, same coverege data. seems reset=true doesn't work.

how can make jacoco reset coverega data info after dump it? appreciate help.

i encountered same problem. please take closer , you'll find 2 coverage data dumps have not same. same in size, not when "diff" them.

when call "reset", it's easy assume jacocoagent going wipe out execution data, , next dump expected 0 in size, that's not case. instead, jacocoagent reset execution data "not executed", , dump next file marking not executed, not empty file. jacoco.exec file size associated how many classes have been loaded jvm.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -