在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):dawnwords/jacoco-badge-gradle-plugin开源软件地址(OpenSource Url):https://github.com/dawnwords/jacoco-badge-gradle-plugin开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):Jacoco Badge Gradle PluginJacoco Badge Gradle Plugin aims to analyze Jacoco Test Coverage Report and update the README file in your Java project with the badge link generated by Shields IO to reflect your code coverage on code change. Usage
plugins {
id 'java'
id 'jacoco'
id 'com.github.dawnwords.jacoco.badge'
}
# Your Project Name
some basic description
### code coverages
![LINE](http://line.coverage.link)
![BRANCH](http://branch.coverage.link)
![COMPLEXITY](http://complexity.link)
### some other introductions Note that by default the
./gradlew jacocoTestReport generateJacocoBadge then you'll see the coverage link in your ![LINE](https://img.shields.io/badge/line--coverage-87%25-brightgreen.svg)
![BRANCH](https://img.shields.io/badge/branch--coverage-78%25-yellow.svg)
![COMPLEXITY](https://img.shields.io/badge/complexity-1.90-brightgreen.svg) Plugin SettingsThere's a configuration point for this plugin: jacocoBadgeGenSetting {
jacocoReportPath "$buildDir/reports/jacoco/test/jacocoTestReport.xml"
readmePath "$projectDir/README.md"
// since v0.2.0, percentage limitation (0-100) for different type of coverage
limit = ['instruction': 0, 'branch': 0, 'line': 0, 'method': 0, 'class': 0]
} Coverage Badge TypeJacoco gives us 6 coverage metrics in its test report, namely |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论