Comments (14)
Even if I'd love this to be the reason, I can assure you that this is not the case for my codebase ;-) For some packages, we have 100% line coverage and no missed lines, but not overall.
from jacoco-reporter.
Sure thing. This is my step configuration:
- name: JaCoCo Code Coverage Report
id: jacoco_reporter
uses: PavanMudigonda/[email protected]
with:
coverage_results_path: jacoco.xml
coverage_report_name: Coverage
coverage_report_title: JaCoCo
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_check_run: false
minimum_coverage: 50
fail_below_threshold: true
publish_only_summary: false
I added a debug step before the reporter, to show that the jacoco.xml is there.
from jacoco-reporter.
@cristiammercado Hi, thanks for trying to use my reporter. I tested it using Gradle only and haven't received any issues so far. I will test using Maven and see whats causing this. Ideally error should not come but if it comes it should be valid and meaningful one. I will get back to you in a day!
from jacoco-reporter.
@cristiammercado I just forked one of the Java Maven Repo from opensource and my reporter worked right out of the box with out errors. https://github.com/PavanMudigonda/java-maven-playground/actions/runs/2698921071
I am not sure whats causing your repo to hang. Could you tell me if the JaCoCo Coverage XML was generated and if location was correct ? usually this is where issues happen.
from jacoco-reporter.
I am using the Maven plugin dependency jacoco-maven-plugin
version 0.8.8
. I already confirmed that the location of the file is correct (target/site/jacoco/jacoco.xml
). I attached the file for you to download and do the test, I don't know if the structure suddenly changed or something similar.
Thanks in advance!
from jacoco-reporter.
I'm attaching some screenshots of the folder structure where the JaCoCo file is located.
from jacoco-reporter.
Ok. This info is helpful. Let me get back!
from jacoco-reporter.
@cristiammercado Could you let me know if you got this error ? I got this error with the jacoco.xml file you provided yesterday.
from jacoco-reporter.
@cristiammercado please try again with v4.8
from jacoco-reporter.
I get exactly the same error as you posted above using jacoco-maven-plugin
. Even with v4.8
from jacoco-reporter.
It seems this could be case when you have no missing lines and 100% coverage is achieved. I will try to fix it this week !
@benediktarnold @cristiammercado
from jacoco-reporter.
Even if I'd love this to be the reason, I can assure you that this is not the case for my codebase ;-) For some packages, we have 100% line coverage and no missed lines, but not overall.
would you be able to give me a screenshot of your error ? is it exact same issue from above.
from jacoco-reporter.
@benediktarnold if is possible for you to put shell script “cat jacoco.xml” and check if its empty or code coverage is present in that xml ?
If you see below screenshot, this is how it’s supposed to work. it should convert the jacoco xml, to markdown file, and publish report. I suspect if your xml is empty. I just need this to be confirmed. if xml is valid then I am doing something wrong.
https://github.com/PavanMudigonda/java-maven-playground/actions/runs/4010791833/jobs/6887686029
I use jacoco-maven-plugin 0.8.8
from jacoco-reporter.
@benediktarnold @cristiammercado It seems issue is happening when there are 61,000 plus lines in your Coverage Report !
from jacoco-reporter.
Related Issues (20)
- GH Action failing when Covered Lines is 0 HOT 1
- Should consider checking when $coveredLines is 0 HOT 2
- bug in output variable coverage_percentage HOT 1
- Cannot bind coveragePercentageString argument to parameter 'Value' in actions.ps1:244 HOT 3
- Action Fails With "Resource not accessible by integration" HOT 6
- Display Coverage Percent along with Check HOT 8
- Invalid format '# Coverage Report: Test coverage results' HOT 4
- Some errors appearing on action execution (not happening before) HOT 4
- Deprecation warning from github HOT 2
- Code coverage differs from JaCoCo report HOT 3
- Support for multi-module projects with multiple coverage reports
- Action doesn't work if `coverage_report_title` is not set HOT 1
- Unable to locate executable file: pwsh on Self-hosted GitHub Runner HOT 1
- Can't get coverageSummary from outputs HOT 2
- Regression: build failure when upgrading from v4.9 to v5.0 HOT 4
- Upgrade to Node 20
- Previous Bump of Node 16 to 20 not working HOT 6
- Different coverage values between jacoco file and jacoco-reporter HOT 3
- embedmissedlines.ps1 parameter 'Path' is null HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jacoco-reporter.