kandi background
Explore Kits

jacoco-plugin | Jenkins JaCoCo Plugin | Continous Integration library

 by   jenkinsci Java Version: jacoco-3.3.1 License: MIT

 by   jenkinsci Java Version: jacoco-3.3.1 License: MIT

Download this library from

kandi X-RAY | jacoco-plugin Summary

jacoco-plugin is a Java library typically used in Devops, Continous Integration, Jenkin applications. jacoco-plugin has build file available, it has a Permissive License and it has high support. However jacoco-plugin has 10 bugs and it has 2 vulnerabilities. You can download it from GitHub.
[![Build Status](https://ci.jenkins.io/buildStatus/icon?job=Plugins/jacoco-plugin/master)](https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fjacoco-plugin/activity) [![Build Status](https://travis-ci.org/jenkinsci/jacoco-plugin.svg?branch=master)](https://travis-ci.org/jenkinsci/jacoco-plugin) [![Release](https://img.shields.io/github/release/jenkinsci/jacoco-plugin.svg)](https://github.com/jenkinsci/jacoco-plugin/releases) <!--[![Join the chat at https://gitter.im/jenkinsci/jacoco-plugin](https://badges.gitter.im/jenkinsci/jacoco-plugin.svg)](https://gitter.im/jenkinsci/jacoco-plugin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)-→; [![Jenkins Plugin](https://img.shields.io/jenkins/plugin/v/jacoco.svg)](https://plugins.jenkins.io/jacoco) [![GitHub release](https://img.shields.io/github/release/jenkinsci/jacoco-plugin.svg?label=changelog)](https://github.com/jenkinsci/jacoco-plugin/releases/latest) [![Jenkins Plugin Installs](https://img.shields.io/jenkins/plugin/i/jacoco.svg?color=blue)](https://plugins.jenkins.io/jacoco). A plugin for Jenkins to capture and visualize code coverage testing results for projects using the JaCoCo for code-coverage analysis. More information can be found on the Wiki page https://wiki.jenkins-ci.org/display/JENKINS/JaCoCo+Plugin. Note: Version 2.0.0 and higher requires using JaCoCo 0.7.5 or newer, if your projects still use JaCoCo 0.7.4, the plugin will not display any code-coverage numbers any more! In this case please use version 1.0.19 until you can update jacoco in your codebase.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • jacoco-plugin has a highly active ecosystem.
  • It has 127 star(s) with 168 fork(s). There are 117 watchers for this library.
  • There were 1 major release(s) in the last 12 months.
  • jacoco-plugin has no issues reported. There are 13 open pull requests and 0 closed requests.
  • It has a negative sentiment in the developer community.
  • The latest version of jacoco-plugin is jacoco-3.3.1
jacoco-plugin Support
Best in #Continous Integration
Average in #Continous Integration
jacoco-plugin Support
Best in #Continous Integration
Average in #Continous Integration

quality kandi Quality

  • jacoco-plugin has 10 bugs (0 blocker, 0 critical, 9 major, 1 minor) and 234 code smells.
jacoco-plugin Quality
Best in #Continous Integration
Average in #Continous Integration
jacoco-plugin Quality
Best in #Continous Integration
Average in #Continous Integration

securitySecurity

  • jacoco-plugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • jacoco-plugin code analysis shows 2 unresolved vulnerabilities (0 blocker, 2 critical, 0 major, 0 minor).
  • There are 8 security hotspots that need review.
jacoco-plugin Security
Best in #Continous Integration
Average in #Continous Integration
jacoco-plugin Security
Best in #Continous Integration
Average in #Continous Integration

license License

  • jacoco-plugin is licensed under the MIT License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
jacoco-plugin License
Best in #Continous Integration
Average in #Continous Integration
jacoco-plugin License
Best in #Continous Integration
Average in #Continous Integration

buildReuse

  • jacoco-plugin releases are available to install and integrate.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • jacoco-plugin saves you 3256 person hours of effort in developing the same functionality from scratch.
  • It has 7040 lines of code, 644 functions and 103 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
jacoco-plugin Reuse
Best in #Continous Integration
Average in #Continous Integration
jacoco-plugin Reuse
Best in #Continous Integration
Average in #Continous Integration
Top functions reviewed by kandi - BETA

kandi has reviewed jacoco-plugin and discovered the below as its top functions. This is intended to give you an instant insight into jacoco-plugin implemented functionality, and help decide if they suit your requirements.

  • Collect JaCo coverage data .
    • Get the coverage summary from a set of jobs .
      • Get the build health report .
        • Create a trend graph .
          • Gets the result based on coverage type and coverage .
            • Creates the graph .
              • Applies the plot to a given chart
                • Gets the method name .
                  • Print the source file to the given writer .
                    • Validates the attribute value .

                      Get all kandi verified functions for this library.

                      Get all kandi verified functions for this library.

                      jacoco-plugin Key Features

                      Jenkins JaCoCo Plugin

                      How to release a new version

                      copy iconCopydownload iconDownload
                      `ssh -T git@github.com`

                      Recording coverage for builds

                      copy iconCopydownload iconDownload
                      Zeichne Testergebnisse auf.
                      [JaCoCo plugin] Collecting JaCoCo coverage data...
                      [JaCoCo plugin] build/*.exec;build/*-classes;src/java,src/*/java,src/*/src; locations are configured
                      [JaCoCo plugin] Number of found exec files: 5
                      [JaCoCo plugin] Saving matched execfiles:  .../build/jacoco-excelant.exec .../build/jacoco-main.exec .../build/jacoco-ooxml-lite.exec
                      [JaCoCo plugin] Saving matched class directories:  .../build/examples-classes .../build/excelant-classes .../build/excelant-test-classes
                      [JaCoCo plugin] Saving matched source directories:  .../src/contrib/src .../src/examples/src .../src/excelant/java .../src/java
                      [JaCoCo plugin] Loading inclusions files..
                      [JaCoCo plugin] inclusions: []
                      [JaCoCo plugin] exclusions: [**/Test*]
                      [JaCoCo plugin] Thresholds: JacocoHealthReportThresholds [minClass=0, maxClass=0, minMethod=0, maxMethod=0, minLine=0, maxLine=0,
                      minBranch=0, maxBranch=0, minInstruction=0, maxInstruction=0, minComplexity=0, maxComplexity=0]
                      [JaCoCo plugin] Publishing the results..
                      [JaCoCo plugin] Loading packages..
                      [JaCoCo plugin] Done.

                      Change Log

                      copy iconCopydownload iconDownload
                      Older changelog

                      How to make &quot;sourceDirectories&quot; public in Jacoco report generation?

                      copy iconCopydownload iconDownload
                      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/javac/debug", excludes: fileFilter)
                          def mainSrc = "$project.projectDir/src/main/java"
                      
                          sourceDirectories.from files([mainSrc])
                          classDirectories.from files([debugTree])
                          executionData.from fileTree(dir: project.buildDir, includes: [
                                  'jacoco/testDebugUnitTest.exec', 'outputs/code_coverage/debugAndroidTest/connected/**/*.ec'
                          ])
                      }
                      

                      Community Discussions

                      Trending Discussions on jacoco-plugin
                      • How to make &quot;sourceDirectories&quot; public in Jacoco report generation?
                      Trending Discussions on jacoco-plugin

                      QUESTION

                      How to make &quot;sourceDirectories&quot; public in Jacoco report generation?

                      Asked 2020-Jul-05 at 15:15

                      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/javac/debug", excludes: fileFilter)
                          def mainSrc = "$project.projectDir/src/main/java"
                      
                          sourceDirectories = files([mainSrc])
                          classDirectories = files([debugTree])
                          executionData = fileTree(dir: project.buildDir, includes: [
                                  'jacoco/testDebugUnitTest.exec', 'outputs/code_coverage/debugAndroidTest/connected/**/*.ec'
                          ])
                      }
                      

                      The error I am getting is :

                      Cannot set the value of read-only property 'sourceDirectories' for task ':app:jacocoTestReport' of type org.gradle.testing.jacoco.tasks.JacocoReport.

                      Below field's are private in the jacoco now I believe.

                      • sourceDirectories
                      • classDirectories
                      • executionData

                      My dependency : classpath "org.jacoco:org.jacoco.core:0.8.4"

                      Also, I tried to change the version but no help.

                      ANSWER

                      Answered 2020-Jul-05 at 15:15

                      Found the Answer here

                      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/javac/debug", excludes: fileFilter)
                          def mainSrc = "$project.projectDir/src/main/java"
                      
                          sourceDirectories.from files([mainSrc])
                          classDirectories.from files([debugTree])
                          executionData.from fileTree(dir: project.buildDir, includes: [
                                  'jacoco/testDebugUnitTest.exec', 'outputs/code_coverage/debugAndroidTest/connected/**/*.ec'
                          ])
                      }
                      

                      (sourceDirectories =) in not allowed in latest gradle version instead (sourceDirectories.from) should be used .

                      Source https://stackoverflow.com/questions/62740456

                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                      Vulnerabilities

                      No vulnerabilities reported

                      Install jacoco-plugin

                      See https://jenkinsci.github.io/maven-hpi-plugin/ for details.
                      Build the plugin:
                      Test locally (invokes a local Jenkins instance with the plugin installed):
                      The plugin provides two things, a build-publisher to record and display coverage data as part of builds as well as a new column-type for dashboard views which can display coverage data in Dashboards.

                      Support

                      When looking for things to work at there are [pull requests](https://github.com/jenkinsci/jacoco-plugin/pulls) and a list of [Jenkins Issues](https://issues.jenkins-ci.org/issues/?jql=project%20%3D%20JENKINS%20AND%20status%20not%20in%20(Closed%2C%20Resolved%2C%20%22Fixed%20but%20Unreleased%22)%20AND%20component%20%3D%20jacoco-plugin%20ORDER%20BY%20key%20DESC). In general the plugin is currently in "minimal maintenance" mode, i.e. no larger development is done due to the small number of active contributors and general time constraints.

                      DOWNLOAD this Library from

                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      Share this Page

                      share link
                      Consider Popular Continous Integration Libraries
                      Try Top Libraries by jenkinsci
                      Compare Continous Integration Libraries with Highest Support
                      Compare Continous Integration Libraries with Highest Quality
                      Compare Continous Integration Libraries with Highest Security
                      Compare Continous Integration Libraries with Permissive License
                      Compare Continous Integration Libraries with Highest Reuse
                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      • © 2022 Open Weaver Inc.