jacoco-maven-plugin

How to have the Maven build wait for the Jetty server to start in forked mode before running the integration tests?

元气小坏坏 提交于 2019-12-01 00:17:46
I have a report for the code coverage by the integration test. I do have integration tests, and these are run successfully in the Maven build. When I click on the "Sessions" link in the top right corner of the HTML report I can see my test classes in the list, but I cannot see my main classes that are exercised by the tests now, and all coverage report percentages are at zero. As a side note, my unit test coverage works fine, with the percentages being displayed all right. My configuration looks like: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin<

Maven Jacoco Configuration - Exclude classes/packages from report not working

梦想与她 提交于 2019-11-27 06:35:21
I have a maven multi-module project and I'm using jacoco-maven for code coverage reports. Some classes should not be reported, as they're Spring configuration and I'm not interested in them. I have declared the maven-jacoco plugin as follow: <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.2.201409121644</version> <configuration> <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> <exclude>some.package.*</exclude> <exclude>**/*Config.*</exclude> <exclude>**/*Dev.*</exclude> <exclude>some/package/SomeClass.java<

Maven Jacoco Configuration - Exclude classes/packages from report not working

天涯浪子 提交于 2019-11-26 10:24:30
问题 I have a maven multi-module project and I\'m using jacoco-maven for code coverage reports. Some classes should not be reported, as they\'re Spring configuration and I\'m not interested in them. I have declared the maven-jacoco plugin as follow: <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.2.201409121644</version> <configuration> <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> <exclude>some.package.*</exclude