![jacoco report file jacoco report file](http://i.stack.imgur.com/FdvJU.png)
Configure the code coverage report for integration tests.Configure the code coverage report for unit tests.Add the JaCoCo Maven plugin to the plugins section of our POM file.We can configure the JaCoCo Maven plugin by following these steps: It creates code coverage reports from the execution data recorded by the JaCoCo runtime agent.It provides us an access to the JaCoCo runtime agent which records execution coverage data.We use the JaCoCo Maven plugin for two purposes: If you have not read it yet, I recommend that you read it before reading this blog post. Note: The example application of this blog post is based on the example application of my blog post called Integration Testing with Maven. In other words, the code coverage report for unit tests must be created into a different directory than the code coverage report for integration tests.
![jacoco report file jacoco report file](https://automationrhapsody.com/wp-content/uploads/2015/08/JaCoCo-export-690x335.png)
![jacoco report file jacoco report file](https://i.stack.imgur.com/UGFYn.png)
When I started using Java 7, I noticed right away that the Cobertura Maven plugin doesn’t support it.