My company is using the jacoco-maven-plugin 0.8.5 and I seem to be 
observing some odd behavior. I'll briefly try to explain what we're doing, 
but please feel free to ask me more questions.

There is an abstract class (BaseClient) I want to test, which has some 
non-abstract functions.

abstract class BaseClient {
  protected void someFn() {
    log.error("This ran");
    .....stuff.....
  }
}

To test it, we extend it (TestClient).

class TestClient extends BaseClient {
  @Override
  public void someFn() {
    return super.someFn();
  }
}

The TestClient is created in test files with Mockito.spy().

When I run the tests, I see that the BaseClient function actually ran, 
because logs that I added get printed. I also see that using the inbuilt 
IntelliJ coverage tool, I get coverage for the function in the abstract 
class. But I Jacoco, the entire BaseClient has 0% coverage.

Thanks,
Shashank

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/15592d8d-aff9-48c4-af1b-4b1f2f74dba8n%40googlegroups.com.

Reply via email to