Lines Matching refs:coverage
42 * The section below adds code coverage to all the unitTest targets. By default, the jacoco plugin
49 // Fix robolectric tests reporting 0 coverage on newer versions of the plugin.
55 // Define the main coverage task if it does not exist. This task generates coverage report for all
57 def coverageTask = tasks.findByName('coverage') ?: tasks.create('coverage') {
59 description = "Generate Jacoco coverage reports"
66 // Create coverage task of form 'testFlavorCoverageUnitTestCoverage' depending on
70 description = "Generate a Jacoco coverage report for robolectric tests on ${variant.name}."
91 // Create a zip file of the HTML coverage reports
99 // Copy the coverage reports to dist/host-test-coverage
102 dist.file jacocoTask.reports.xml.destination.path, "host-test-coverage/${jacocoTask.name}.xml"
105 dist.file zipTask.archivePath.path, "host-test-coverage/${zipTask.archiveName}"