Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#14 Fix jacoco xml report destination in README #14

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

colddew
Copy link
Contributor

@colddew colddew commented Apr 14, 2019

hi, i have used gradle-5.1 to execute codeCoverageReport command, it throw exception as follow, and i solve this problem when i change xml.destination "${buildDir}/reports/jacoco/report.xml" to xml.destination file("${buildDir}/reports/jacoco/report.xml")

➜  micro-service-gradle git:(master) gradle clean test codeCoverageReport        
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/anmy/workspace/workspace-new/micro-service-lab/micro-service-gradle/build.gradle' line: 74

* What went wrong:
A problem occurred evaluating root project 'micro-service-gradle'.
> Could not find method destination() for arguments [/Users/anmy/workspace/workspace-new/micro-service-lab/micro-service-gradle/build/reports/jacoco/report.xml] on Report xml of type org.gradle.api.reporting.internal.TaskGeneratedSingleFileReport.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

@codecov
Copy link

codecov bot commented Apr 14, 2019

Codecov Report

Merging #14 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##             master   #14   +/-   ##
======================================
  Coverage        50%   50%           
  Complexity        2     2           
======================================
  Files             1     1           
  Lines             4     4           
======================================
  Hits              2     2           
  Misses            1     1           
  Partials          1     1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5358c39...ebce029. Read the comment docs.

Copy link
Contributor

@thomasrockhu thomasrockhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @colddew!

@thomasrockhu thomasrockhu merged commit d185350 into codecov:master Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants