gradle-cobertura-plugin icon indicating copy to clipboard operation
gradle-cobertura-plugin copied to clipboard

gradle cobertura plugin support gradle 4.5.1 ?

Open h920526 opened this issue 6 years ago • 3 comments

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

h920526 avatar Apr 25 '18 07:04 h920526

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

jon-w1 avatar Oct 22 '18 21:10 jon-w1

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

stevesaliman avatar Mar 23 '19 21:03 stevesaliman

yes still issue in gradle 5

Abhi4caparian avatar Jun 05 '19 06:06 Abhi4caparian