Comments (2)
Uh.. I think that's my mistake. i used 0.60 and hope it will convert it to 0.xx
for me however, 0.60 is treated as 0.6 which could be the reason.
Apologies for it. I'm going to close this issue! Thank you!
from diff-coverage-gradle.
Hi @adamxchen
Seems, when you set min coverage to 0.x
then jacoco ceils coverage ratio to the same format 0.x
.
However, when you set coverage to 0.xx
then jacoco computes the coverage ratio with the same precision.
I've tried to run the plugin with different gradle versions:
5.0
5.3
6.7.1
6.9.3
7.4.2
7.6
8.0-rc-1
And configuration:
minBranches = 0.66
minLines = 0.77
minInstructions = 0.88
failOnViolation = true
And I've received actual error messages that are equal to expected:
instructions covered ratio is 0.52, but expected minimum is 0.88
branches covered ratio is 0.50, but expected minimum is 0.66
lines covered ratio is 0.66, but expected minimum is 0.77
Diff-Coverage version: 0.9.5
In other words, I wasn't able to reproduce the issue.
Could you please provide a sample project in which we could observe the issue?
from diff-coverage-gradle.
Related Issues (20)
- Incorrect git diff file generated by plugin HOT 6
- Cannot include the plugin in gradle, cannot find plugin id HOT 7
- Gradle 7.4 - Execution optimizations have been disabled for task ':diffCoverage' HOT 3
- java.lang.ClassCastException HOT 1
- 'diffCoverageReport.classesDirs' file collection is empty. HOT 20
- Consider adding support for Configuration Cache HOT 4
- Log4J Dependency has security vulnerability HOT 1
- False Negative on Code Coverage for Blank Lines and Comments added to Source file under test HOT 5
- Wrong class file distinguish when two classes having same package and name HOT 5
- diffCoverage gives html report with "No class files specified." HOT 3
- How to setup in a multi-module project? HOT 3
- Diffcoverage fails with Empty File Collection if Clean is used HOT 5
- Adding exclusions setting HOT 4
- README gives incorrect default report directory HOT 1
- diffSource.git.compareWith ignores uncommitted files HOT 8
- There are some issues for collecting stats of Scala code
- Plugin fails when filtering classes before HOT 2
- 'diffCoverageReport.jacocoExecFiles' file collection is empty HOT 3
- java.io.IOException: Error while analyzing HOT 2
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 diff-coverage-gradle.