I have a server running inside a felix OSGi container.
I instrument the startup with this agent configuration:
-javaagent:E:/java/jacoco/lib/jacocoagent.jar=output=tcpserver,
includes=com.stibo.*,sessionid=jtpe,classdumpdir=dump
To get a Jacoco dump and report and have two tasks in a simple gradle script,
interfacing with the Jacoco ant tasks. I have attached it below for reference.
I call the dump tasks, and I get a remote.exec file with the needed data.
After that, I call the report task, and a nice report is generated for me.
The generated report includes all the right info about classes and methods.
Unfortunately, the report has no coverage data at all, 0% on all classes and
methods.
The sessions link in the upper right hand corner says this:
----
Sessions
No session information available.
No execution data available.
----
I have no idea what to do to make the report work. Hints appreciated!!
Best regards
/Jesper Thuun-Petersen
Gradle script:
configurations {
jacoco
}
dependencies {
jacoco 'org.jacoco:org.jacoco.ant:0.6.5.201403032054'
}
task dump << {
ant {
taskdef(name: "dump", classname: "org.jacoco.ant.DumpTask",
classpath: configurations.jacoco.asPath)
dump(address: "localhost", reset: "true", destfile:
"remote.exec")
}
}
task report << {
ant {
taskdef(name: "report", classname: "org.jacoco.ant.ReportTask",
classpath: configurations.jacoco.asPath)
report {
executiondata {
file(new File("remote.exec"))
}
structure(name: 'server') {
classfiles {
fileset(dir: "dump")
}
}
html(destdir: "report")
}
}
}
--
You received this message because you are subscribed to the Google Groups
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.