All Projects → codecov → Example Gradle

codecov / Example Gradle

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Example Gradle

Codecov Bash
Global coverage report uploader for Codecov
Stars: ✭ 220 (+223.53%)
Mutual labels:  coverage, codecov
ts-node-starter
GitHub template to get started with Node.js & TypeScript. ⚡
Stars: ✭ 28 (-58.82%)
Mutual labels:  coverage, codecov
travis-ci-tutorial-java
Just to learn how to use travis-ci in a java project!
Stars: ✭ 38 (-44.12%)
Mutual labels:  coverage, codecov
Example Cpp11 Cmake
Stars: ✭ 129 (+89.71%)
Mutual labels:  coverage, codecov
Codecov Node
Global coverage report uploader for Codecov in NodeJS
Stars: ✭ 268 (+294.12%)
Mutual labels:  coverage, codecov
Codecov Python
Python report uploader for Codecov
Stars: ✭ 162 (+138.24%)
Mutual labels:  coverage, codecov
example-objc
Codecov example for Xcode
Stars: ✭ 24 (-64.71%)
Mutual labels:  coverage, codecov
Moderncppstarter
🚀 Kick-start your C++! A template for modern C++ projects using CMake, CI, code coverage, clang-format, reproducible dependency management and much more.
Stars: ✭ 2,381 (+3401.47%)
Mutual labels:  coverage, codecov
phpunit-travis-ci-coverage-example
phpUnit Testing on Travis-CI with Code Coverage on CodeCov
Stars: ✭ 30 (-55.88%)
Mutual labels:  coverage, codecov
enterprise
Code coverage done right.® On-premise enterprise version.
Stars: ✭ 63 (-7.35%)
Mutual labels:  coverage, codecov
Example Swift
Codecov: Swift coverage example
Stars: ✭ 121 (+77.94%)
Mutual labels:  coverage, codecov
Learn Istanbul
🏁 Learn how to use the Istanbul JavaScript Code Coverage Tool
Stars: ✭ 332 (+388.24%)
Mutual labels:  coverage, codecov
gocoverutil
No description or website provided.
Stars: ✭ 25 (-63.24%)
Mutual labels:  coverage, codecov
CPP Template
C++ project template : CMake, Test, Travis CI, Appveyor, CodeCoverage, Doxygen
Stars: ✭ 32 (-52.94%)
Mutual labels:  coverage, codecov
Covr
Test coverage reports for R
Stars: ✭ 285 (+319.12%)
Mutual labels:  coverage, codecov
Kcov
Code coverage tool for compiled programs, Python and Bash which uses debugging information to collect and report data without special compilation options
Stars: ✭ 515 (+657.35%)
Mutual labels:  coverage, codecov
Sbt Ignore Play Generated
Configure linters and coverage tools to ignore Play's generated source files.
Stars: ✭ 10 (-85.29%)
Mutual labels:  coverage
Node Coveralls
lcov posting to coveralls.io
Stars: ✭ 1,024 (+1405.88%)
Mutual labels:  coverage
Cyr2lat
Converts Cyrillic characters in post, page and term slugs to Latin characters. Useful for creating human-readable URLs.
Stars: ✭ 25 (-63.24%)
Mutual labels:  coverage
Golang Ci Template Github Actions
example for golang project using github actions
Stars: ✭ 24 (-64.71%)
Mutual labels:  coverage

Codecov Gradle Example

FOSSA Status

Guide

Travis Setup

Add to your .travis.yml file.

language: java
jdk:
  - oraclejdk8
before_script:
  - chmod +x gradlew
script:
  - ./gradlew check
  - ./gradlew codeCoverageReport
after_success:
  - bash <(curl -s https://codecov.io/bash)

Produce Coverage Reports

  1. Add Jacoco Plugin to your build.gradle. See here
  2. Set Jacoco to export xml. See here
  3. Execute your tests as normal
  4. Call gradle jacocoTestReport to generate report. See here

FAQ

  • Q: Do you support Multi-module projects?
    A:Update your parent (root) build.gradle:
allprojects {
    apply plugin: 'java'
    apply plugin: 'maven'
    apply plugin: 'jacoco'

    sourceCompatibility = 1.8
    targetCompatibility = 1.8

    repositories {
        mavenLocal()
        mavenCentral()
        jcenter()

        maven { url "http://repo1.maven.org/maven2/" }
    }
}

subprojects {
    dependencies {
        ...
    }

    test.useTestNG()
}

task codeCoverageReport(type: JacocoReport) {
    executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")

    subprojects.each {
        sourceSets it.sourceSets.main
    }

    reports {
        xml.enabled true
        xml.destination file("${buildDir}/reports/jacoco/report.xml")
        html.enabled false
        csv.enabled false
    }
}

codeCoverageReport.dependsOn {
    subprojects*.test
}

Caveats

Private Repo

Repository tokens are required for (a) all private repos, (b) public repos not using Travis-CI, CircleCI or AppVeyor. Find your repository token at Codecov and provide via appending -t <your upload token> to you where you upload reports.

Links

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].