who are you
On Fri, Mar 8, 2019 at 4:58 PM <[email protected]> wrote: > Currently we are using Cobertura and moving to Jacoco for the support of > Java 8 suppoort. > I have 2 wildfly server instances running on a server. I am using Jacoco > 0.8.3 with ant task on the fly instrumentation. > Have configured Jacoco agent with same exec file in standalone.conf for > both server instances. > > Running the test for the appln A running on one of the server instance.All > the Junit tests passed and coverage report is generated. > But seeing the following issues. > 1. Some classes are not at all covered. It shows 0% coverage. > 2. Consistenly few methods in some of the classes are covered and > remainning methods are not covered. > > > Steps followed to use Jacoco in server setup: > > a.Build the ear without any instrumentation > b.Add Javaagent in server startup (add in standalone.conf with file option) > > JACOCO_AGENT_OPTS="-javaagent:/home/apache-ant-1.10.3/lib/jacocoagent.jar=destfile=/home/jacocotest/target/jacoco.exec,output=file" > c.Add Jacoco ant tasks (e.g below) > > <jacoco:coverage destfile="${result.exec.file}"> > <junit fork="yes" dir="${test.home.dir}" failureProperty="test.failed" > haltonerror="false" printsummary="yes" forkmode="once"> > <classpath refid="test.classpath" /> > <formatter type="xml" /> > <batchtest fork="yes" todir="${junit.reports.xml.dir}" > > <fileset dir="${test.home.dir}"> > <include name="**/unit/*Test*.class"/> > </fileset> > </batchtest> > </junit> > </jacoco:coverage> > > <jacoco:report> > <executiondata ...> - jacoco.exec file > <sourcefiles ...> - source code in folder structure > <classfiles ...> - uninstrumented class files in jar > </jacoco:report> > > d. I see exec file is updated as Junits are run without the need for > server shutdown to load coverage info. > > Can someone help with this to check if I am missing anything on > configuration? > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/527e32b7-10eb-48ec-a82b-d25b8e815225%40googlegroups.com > <https://groups.google.com/d/msgid/jacoco/527e32b7-10eb-48ec-a82b-d25b8e815225%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CAD3Qtn6o%3DCy9X_8ZoRugpGNfaKFXzJw6knB1fxaXOdWw1w64aw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
