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

gradle cobertura plugin support gradle 4.5.1 ? #152

Open
h920526 opened this issue Apr 25, 2018 · 3 comments
Open

gradle cobertura plugin support gradle 4.5.1 ? #152

h920526 opened this issue Apr 25, 2018 · 3 comments

Comments

@h920526
Copy link

h920526 commented Apr 25, 2018

Hi team:

Gradle Distribution: Gradle wrapper from target build
Gradle Version: 4.5.1
Java Home: C:\Program Files\Java\jdk1.8.0_111
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: cobertura

BUILD SUCCESSFUL (no error occurred), but "some" class disappeared at cobertura report,
Is this plugin support gradle 4.5.1 ?

PS. It works fine at gradle 3.5

plugins {
	id 'net.saliman.cobertura' version '2.5.4'
}
apply plugin: 'net.saliman.cobertura'
cobertura {
	coverageFormats = [ 'xml', 'html' ]
	coverageIgnores = [ 'org.slf4j.*' ]
	coverageExcludes = [ '.*com\\.company\\.app\\.(Application|WebConfig)' ]
	coverageIgnoreTrivial = true
}

thanks

@jon-w1
Copy link

jon-w1 commented Oct 22, 2018

We are seeing a similar issue with gradle version 4.6.

plugins {
	id 'net.saliman.cobertura' version '2.5.4'
}
apply plugin: 'net.saliman.cobertura'
cobertura {
    coverageFormats = ['xml']
    coverageExcludes = ['.*\\.package-info.*', '.*\\.R.*', '.*BuildConfig.*', '.*\\$.*']
    coverageReportDir = new File("$buildDir/reports/cobertura")
    androidVariant = '_jenkinsDebug'
}

The coverage.xml is generated but contains 0's for everything - lines, branches, etc

@stevesaliman
Copy link
Owner

Is this still an issue in Gradle 5 using the latest release of the plugin?

@Abhi4caparian
Copy link

yes still issue in gradle 5

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

No branches or pull requests

4 participants