Use jacoco instead of cobertura for coverage rate collectiong (#1575)
This commit is contained in:
parent
2e84f07203
commit
c25d462ff4
|
|
@ -2,12 +2,12 @@ language: java
|
|||
sudo: false # faster builds
|
||||
|
||||
jdk:
|
||||
- oraclejdk9
|
||||
- oraclejdk8
|
||||
- openjdk7
|
||||
|
||||
script:
|
||||
- travis_wait 30 mvn clean package
|
||||
- travis_wait 30 mvn cobertura:cobertura
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
|
|
|||
|
|
@ -910,6 +910,9 @@ public final class ReflectUtils {
|
|||
while (cls != null && cls != Object.class) {
|
||||
Field[] fields = cls.getDeclaredFields();
|
||||
for (Field field : fields) {
|
||||
if (field.isSynthetic()) {
|
||||
continue;
|
||||
}
|
||||
Object property = getEmptyObject(field.getType(), emptyInstances, level + 1);
|
||||
if (property != null) {
|
||||
try {
|
||||
|
|
|
|||
36
pom.xml
36
pom.xml
|
|
@ -111,10 +111,10 @@
|
|||
<maven_deploy_version>2.8.2</maven_deploy_version>
|
||||
<maven_compiler_version>3.6.0</maven_compiler_version>
|
||||
<maven_source_version>3.0.1</maven_source_version>
|
||||
<maven_cobertura_version>2.7</maven_cobertura_version>
|
||||
<maven_javadoc_version>3.0.0</maven_javadoc_version>
|
||||
<maven_jetty_version>6.1.26</maven_jetty_version>
|
||||
<maven_checkstyle_version>3.0.0</maven_checkstyle_version>
|
||||
<maven_jacoco_version>0.8.1</maven_jacoco_version>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
|
|
@ -184,7 +184,6 @@
|
|||
<maven_deploy_version>2.7</maven_deploy_version>
|
||||
<maven_compiler_version>3.1</maven_compiler_version>
|
||||
<maven_source_version>3.0.1</maven_source_version>
|
||||
<maven_cobertura_version>2.7</maven_cobertura_version>
|
||||
<maven_javadoc_version>2.10.1</maven_javadoc_version>
|
||||
</properties>
|
||||
</profile>
|
||||
|
|
@ -338,7 +337,7 @@
|
|||
<configuration>
|
||||
<useSystemClassLoader>true</useSystemClassLoader>
|
||||
<forkMode>once</forkMode>
|
||||
<argLine>${argline}</argLine>
|
||||
<argLine>${argline} ${jacocoArgLine}</argLine>
|
||||
<systemProperties>
|
||||
<!-- common shared -->
|
||||
<property>
|
||||
|
|
@ -422,16 +421,27 @@
|
|||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>cobertura-maven-plugin</artifactId>
|
||||
<version>${maven_cobertura_version}</version>
|
||||
<configuration>
|
||||
<formats>
|
||||
<format>html</format>
|
||||
<format>xml</format>
|
||||
</formats>
|
||||
<check/>
|
||||
</configuration>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>${maven_jacoco_version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>jacoco-initialize</id>
|
||||
<goals>
|
||||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<propertyName>jacocoArgLine</propertyName>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>jacoco-site</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue