Using examples that come with Tomcat as following:
java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
mkdir /tmp/j
cd /tmp/j
wget "http://repo1.maven.org/maven2/org/jacoco/jacoco/0.8.3/jacoco-0.8.3.zip"
aunpack jacoco-0.8.3.zip
wget "https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.29/bin/apache-tomcat-8.5.29.tar.gz"
aunpack apache-tomcat-8.5.29.tar.gz
cat <<END >./apache-tomcat-8.5.29/bin/setenv.sh
CATALINA_OPTS="\${CATALINA_OPTS} -javaagent:/tmp/j/jacoco-0.8.3/lib/jacocoagent.jar=destfile=/tmp/j/jacoco.exec"
END
./apache-tomcat-8.5.29/bin/catalina.sh start
curl http://localhost:8080/examples/servlets/servlet/HelloWorldExample
./apache-tomcat-8.5.29/bin/catalina.sh stop 60
I just got non zero file:
ls -l jacoco.exec
-rw-r----- 1 evgeny.mandrikov wheel 38463 Mar 7 20:53 jacoco.exec
That includes information about execution of HelloWorldExample :
java -jar jacoco-0.8.3/lib/jacococli.jar execinfo jacoco.exec | grep HelloWorldExample
f4baf7db7add6fb6 19 of 19 HelloWorldExample
Among many other class files:
java -jar jacoco-0.8.3/lib/jacococli.jar execinfo jacoco.exec | wc -l
703
And got following report:
java -jar jacoco-0.8.3/lib/jacococli.jar report jacoco.exec --classfiles apache-tomcat-8.5.29/webapps/examples/WEB-INF/classes/ --html 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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c9daf288-183e-4d26-b628-c7feefdf3846%40googlegroups.com.
--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/65954c96-a2ca-496f-97ef-f9d831c25ef3%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CAKO-k3-afdDkhCXufS9x8w2RW821MDKaEhGFgrVYPYRBfiFW5A%40mail.gmail.com.
<jacoco.PNG>
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/638F50C5-531D-4B02-8468-C914EFE67E9B%40mountainminds.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CAKO-k3_zRFpZCMdCDGQcVUqP9mnnnANADCykosNp7DesBdgG6A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/ABE5DF2E-51DB-479D-96B2-E5798868630B%40mountainminds.com.
Hi Kallesh,
it depends on your build system: JaCoCo provides tools to create JaCoCo coverage reports for Ant and Maven as well as on the command line. See JaCoCo documentation.
Regards,
-marc
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CAKO-k3_sOoNAPnHaaRcbMXDFSGhXQVPxQO5oeCpnf7QBT8knNg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/e0c95391ee8ae9e952c0c8ae57e8a848%40mountainminds.com.
What Are all the limitations of Jacoco?I could see threading is not coveredLamda expressions not covered, reflection etc.. not coveredCan I please know limitations of jacoco
--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c602ad64-5802-4d0d-8fbe-954013b131b4%40googlegroups.com.
I have a situation where there are some threads running upon starting of a service and some time before the Actual Automation tests run.In this case only things which is run by tests, is getting coverage report , not the threads which started before automation has run.
Also with such a sparse description of your setup it is impossible to tell what’s going wrong here. Please provide a executable reproducer (e.g. on Github) which demonstrates the problem.
wrapper.java.additional.8=-javaagent:/opt/hpe/ssmc/yajsw/conf/jacocoagent.jar=append=true
Is there a way to include all
Regards,
kallesh K
--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/8b80c96c-7a3a-43d7-9fa9-b8e99c544549%40googlegroups.com.