I configured javaagent for the application under test and dumped the coverage data locally from the tcpserver. The jacoco.exec for parent target gives the correct coverage. But for the child modules's target the coverage is given as 0. But in reality it is the child modules code that is covered, so it should be shown in both parent and child target's exec files right? Also since the parent does't have any classes i used report:aggregate to generate reports, that gives 0 coverage even for the parent target. The coverage report is generated from dumped exec files right. So how can that be 0 when exec files show non-zero coverage?
On Thu, Sep 5, 2019 at 10:40 AM Marc Hoffmann <[email protected]> wrote: > You can collect execution data from any Java application. > > All you need to do ist to configure the JaCoCo agent for the application > under test. See documentation: > > https://www.jacoco.org/jacoco/trunk/doc/agent.html > > Regards, > -marc > > On 3. Sep 2019, at 08:40, [email protected] wrote: > > Does Jacoco provide code coverage for integration tests of APIs? That is, > I have an instance of my application running locally and I have integration > tests where I hit an api offered by my running application instance. In > this scenario can I use Jacoco to get how many lines of my running > application instance was covered when integration tests where ran? > > -- > 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/a17e87ee-1215-407c-bc1b-0c2d2b928fdd%40googlegroups.com > <https://groups.google.com/d/msgid/jacoco/a17e87ee-1215-407c-bc1b-0c2d2b928fdd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- > 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/C9F1D1C9-2F3A-440D-99E7-E3DCD26E8AFE%40mountainminds.com > <https://groups.google.com/d/msgid/jacoco/C9F1D1C9-2F3A-440D-99E7-E3DCD26E8AFE%40mountainminds.com?utm_medium=email&utm_source=footer> > . > -- 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/CAG4GEfYDCw1QGsbE%2B9GuN8o3TqSe8ZigEmjJ6frMy1V-Q-xfxg%40mail.gmail.com.
