Re: [java code coverage] Is there any document/blogpost describing the step by step process of JaCoCo offline instrumentation in Android

2020-01-14 Thread testerguy1232
The testing tool only uses the android apk, not the source code. Can I still use the Java agent? If so, how do I instrument the apk using Java agent? Is there any sample project available that used java agent to instrument the apk? I am really sorry if I am asking dumb questions. Regards, Sam

Re: [java code coverage] Zero coverage when used both manually and maven plugin

2020-01-14 Thread Marc Hoffmann
Hi, if you want to create a exec *file* use output=file (which is default and can be omitted). Regards, -marc On 2020-01-14 09:03, MLK wrote: > Hi All, > > I used the jacoco agent(jar v0.8.4) in an application server to get the > functional test coverage. This application code already

Re: [java code coverage] Coverage report showing very different numbers between operating systems

2020-01-14 Thread 'Philip Smith' via JaCoCo and EclEmma Users
Hi Marc, The moving between machines was simply being done to try and understand the discrepancy we were seeing between our windows and unix based platforms; it is not something that we would normally be doing. This issue actually came to light as we had our coverage set to 90% in our

Re: [java code coverage] Coverage report showing very different numbers between operating systems

2020-01-14 Thread Marc Hoffmann
Wild guessing without knowing your exact setup: Maybe separation of modules eliminated "cross coverage". I.e. a.test only counts for a not for b. To debug this you can: * drill down both coverage reports and search for specific discrepancies * Use our command line tool to inspect and diff

[java code coverage] Zero coverage when used both manually and maven plugin

2020-01-14 Thread MLK
Hi All, I used the jacoco agent(jar v0.8.4) in an application server to get the functional test coverage. This application code already had the jacoco maven plugin configured (in pom.xml v0.8.1) to measure the unit testing coverage. The .exec file which was dumped using the agent didn't had

Re: [java code coverage] Zero coverage when used both manually and maven plugin

2020-01-14 Thread MLK
Hi Marc, I even tried with "output=file" but it only creates a file and doesn't show any stats when a report is generated. The issue that I'm having is although the exec file is created or dumped through a port, either one doesn't include any coverage stats. I doubt that the manual agent is