Posts tagged with #jacoco
Should you collect and measure code coverage on integration tests or only unit tests? In this post I’ll share some thoughts on this topic.
excludeconfiguration works with classes, so the
.classextension is relevant in specifying the path.
Code Coverage is a useful set of metrics that show you how much of your code you’re impacting during testing. It doesn’t say much about the quality of your tests (you can read more in the old post What is code coverage?), but a 30% coverage is definitely worse than 90%. Let’s see how we can use JaCoCo to see our code coverage in the Java world. We’ll check a few options to use it, such as using it manually, using it within a CI, breaking the build with it, etc. The assumption is we’re working with a Maven project.