jacoco

SonarQube + Jacoco Coverage Discrepancies

六月ゝ 毕业季﹏ 提交于 2021-01-29 17:57:06
问题 I have been using Jacoco to analyze the Code-Coverage of my team's maven project for almost 3 months now. It has been analyzing and increasing properly as we add more and more tests and everything has been working well. In the last few days we have begun trying to set up a SonarQube analysis of the project. The issue we are running into is that the coverage shown in SonarQube is drastically different from what Jacoco is displaying for us. I have looked into this already, and read about some

Code Coverage for Cucumber Tests using Jacoco

妖精的绣舞 提交于 2021-01-29 10:52:17
问题 I am trying to integrate Jacoco to get the code coverage for my Cucumber tests using Maven. Following is my project structure: -src-main-java-Pages -src-main-java-Helper -src-test-java-resources-features -src-test-java-Steps Following is the Jacoco configuration in my POM.xml <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.2</version> <configuration> <destFile>${basedir}/target/coverage-reports/jacoco.exec</destFile> <dataFile>${basedir}/target

How to create Jacoco code coverage from jacoco.exec file that is generated from JAR file?

一曲冷凌霜 提交于 2021-01-29 08:31:17
问题 I have been looking to generate code coverage from jar build file,with jacoco. I found this command java -jar jacococli.jar dump [--address <address>] --destfile <path> [--help] [--port <port>] [--quiet] [--reset] [--retry <count>] to make it work but have no idea how to generate jacococli.jar . I normally added as dependecy but nothing happened. <dependencies> <dependency> <groupId>org.jacoco</groupId> <artifactId>org.jacoco.cli</artifactId> <version>0.8.3</version> </dependency> <

jacoco:report error NoClassDefFoundError

谁都会走 提交于 2021-01-29 08:00:42
问题 I'm trying to testing using jacoco with jenkins,eclipse,maven. previously jacoco:report was done well. But now it does not works. If I try jacoco:report, this error evoke. [INFO] --- jacoco-maven-plugin:0.7.4.201502262128:report (default-cli) @ testPage --- [WARNING] Error injecting: org.apache.maven.doxia.siterenderer.DefaultSiteRenderer java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class

Is it possible for Instrumented tests to create coverage for a library module?

被刻印的时光 ゝ 提交于 2021-01-27 21:05:51
问题 I am in the process of modularising the app I am working on and my coverage has dropped over 20% since splitting my instrumentation tests into the app module. The app is being split into app , core , custom , where core is an android library and the other 2 modules are apps. The majority of the app's functionality will live in core and it is currently mostly tested through instrumentation tests which now reside in app . Is there a way that instrumentation tests in an application module can

Gradle skipping jacoco coverage plugin

纵饮孤独 提交于 2021-01-24 07:35:05
问题 I know there are a lot of similar questions for this on stackexchange but this is driving me crazy and nothing from any other answers have helped me. I've used just about every force flag for gradle I can find. My Gradle version is 2.2.1 My build.gradle buildscript { ext { springBootVersion = '1.5.3.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") classpath("se.transmode.gradle:gradle-docker:1.2") }

Gradle skipping jacoco coverage plugin

醉酒当歌 提交于 2021-01-24 07:31:10
问题 I know there are a lot of similar questions for this on stackexchange but this is driving me crazy and nothing from any other answers have helped me. I've used just about every force flag for gradle I can find. My Gradle version is 2.2.1 My build.gradle buildscript { ext { springBootVersion = '1.5.3.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") classpath("se.transmode.gradle:gradle-docker:1.2") }