jacoco

JaCoCo stopped working after setting the log4j.configurationFactory system property

早过忘川 提交于 2021-02-19 10:49:06
问题 JaCoCo stopped working after setting the log4j.configurationFactory system property. java.lang.reflect.InvocationTargetException FATAL ERROR in native method: processing of -javaagent failed at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.instrument

JaCoCo stopped working after setting the log4j.configurationFactory system property

∥☆過路亽.° 提交于 2021-02-19 10:44:42
问题 JaCoCo stopped working after setting the log4j.configurationFactory system property. java.lang.reflect.InvocationTargetException FATAL ERROR in native method: processing of -javaagent failed at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.instrument

How to make “sourceDirectories” public in Jacoco report generation?

久未见 提交于 2021-02-16 20:32:10
问题 I was following this post to setup Jacoco code coverage for my project. But I am facing a error while writing the task to generate the report. Gradle Task task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) { reports { xml.enabled = true html.enabled = true } def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*'] def debugTree = fileTree(dir: "$project.buildDir/intermediates

Running jacoco check goal with maven 3.5

房东的猫 提交于 2021-02-11 10:20:10
问题 My jacoco plugin configuration in a pom likes below <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.5.201505241946</version> <executions> <execution> <id>pre-unit-test</id> <goals> <goal>prepare-agent</goal> </goals> <configuration> <destFile>${jacoco.ut.execution.data.file}</destFile> </configuration> </execution> <execution> <id>merge-execs</id> <phase>pre-site</phase> <inherited>false</inherited> <goals> <goal>merge</goal> </goals>

Running jacoco check goal with maven 3.5

瘦欲@ 提交于 2021-02-11 10:20:06
问题 My jacoco plugin configuration in a pom likes below <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.5.201505241946</version> <executions> <execution> <id>pre-unit-test</id> <goals> <goal>prepare-agent</goal> </goals> <configuration> <destFile>${jacoco.ut.execution.data.file}</destFile> </configuration> </execution> <execution> <id>merge-execs</id> <phase>pre-site</phase> <inherited>false</inherited> <goals> <goal>merge</goal> </goals>

No JaCoCo analysis of project coverage can be done since there is no class files

☆樱花仙子☆ 提交于 2021-02-10 03:09:32
问题 I am using Bamboo, SonarQube, and Maven plugin for generating the Jacoco Report in SonarQube. It is generating jacoco.exec file but how to display reports in SonarQube? Following plugin i am using ' <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.7.201606060606</version> <executions> <execution> <id>pre-unit-test</id> <goals> <goal>prepare-agent</goal> </goals> <configuration> <!-- Sets the path to the file which contains the execution data. --

No JaCoCo analysis of project coverage can be done since there is no class files

只愿长相守 提交于 2021-02-10 03:07:01
问题 I am using Bamboo, SonarQube, and Maven plugin for generating the Jacoco Report in SonarQube. It is generating jacoco.exec file but how to display reports in SonarQube? Following plugin i am using ' <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.7.201606060606</version> <executions> <execution> <id>pre-unit-test</id> <goals> <goal>prepare-agent</goal> </goals> <configuration> <!-- Sets the path to the file which contains the execution data. --

Generate Code Coverage with JaCoCo and spring-boot-maven-plugin

纵然是瞬间 提交于 2021-02-07 17:26:53
问题 During integration tests I use spring-boot-maven-plugin to start my spring application: <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <id>start-spring-boot</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> </execution> <execution> <id>stop-spring-boot</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </plugin> Now I would like to

Kotlin JaCoCo, no coverage -> IllegalClassFormatException … Please supply original non-instrumented classes

倖福魔咒の 提交于 2021-02-07 12:19:43
问题 kotlin verion: 1.3.61 Android Gradle Plugin: 3.5.3 JaCoCo Version: 0.8.4.201905082037 (default android gradle version) project: https://github.com/goldy1992/Mp3Player/tree/feature/issue-112/migrate-to-kotlin I have a multi module gradle project with: 2 flavours: full, automation 2 build types: release, debug I'm in the process of migrating everything to kotlin. Module structure commons [android library] (works as expected with test coverage) client-test-support (used for test implementations

Kotlin JaCoCo, no coverage -> IllegalClassFormatException … Please supply original non-instrumented classes

假如想象 提交于 2021-02-07 12:19:05
问题 kotlin verion: 1.3.61 Android Gradle Plugin: 3.5.3 JaCoCo Version: 0.8.4.201905082037 (default android gradle version) project: https://github.com/goldy1992/Mp3Player/tree/feature/issue-112/migrate-to-kotlin I have a multi module gradle project with: 2 flavours: full, automation 2 build types: release, debug I'm in the process of migrating everything to kotlin. Module structure commons [android library] (works as expected with test coverage) client-test-support (used for test implementations