Description
It is documented in the project that if we need code coverage reports for the whole project, we need to run something like this where we enabled the test coverage flag and run the reportCoverage task:
./gradlew reportCoverage -PenableTestCoverage=true -Dorg.gradle.parallel=false
If I run it, the build will fail in the end because of jacocoRootReport:
14:34:41 > Task :jacocoRootReport FAILED 14:34:41 14:34:41 FAILURE: Build failed with an exception. 14:34:41 14:34:41 * What went wrong: 14:34:41 Some problems were found with the configuration of task ':jacocoRootReport' (type 'JacocoReport'). 14:34:41 - Type 'org.gradle.testing.jacoco.tasks.JacocoReport' property 'jacocoClasspath' doesn't have a configured value. 14:34:41 14:34:41 Reason: This property isn't marked as optional and no value has been configured. 14:34:41 14:34:41 Possible solutions: 14:34:41 1. Assign a value to 'jacocoClasspath'. 14:34:41 2. Mark property 'jacocoClasspath' as optional. 14:34:41 14:34:41 Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#value_not_set for more details about this problem. 14:34:41 - Type 'org.gradle.testing.jacoco.tasks.JacocoReport' property 'reports.enabledReports.html.outputLocation' doesn't have a configured value. 14:34:41 14:34:41 Reason: This property isn't marked as optional and no value has been configured. 14:34:41 14:34:41 Possible solutions: 14:34:41 1. Assign a value to 'reports.enabledReports.html.outputLocation'. 14:34:41 2. Mark property 'reports.enabledReports.html.outputLocation' as optional. 14:34:41 14:34:41 Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#value_not_set for more details about this problem. 14:34:41 - Type 'org.gradle.testing.jacoco.tasks.JacocoReport' property 'reports.enabledReports.xml.outputLocation' doesn't have a configured value. 14:34:41 14:34:41 Reason: This property isn't marked as optional and no value has been configured. 14:34:41 14:34:41 Possible solutions: 14:34:41 1. Assign a value to 'reports.enabledReports.xml.outputLocation'. 14:34:41 2. Mark property 'reports.enabledReports.xml.outputLocation' as optional.
Attachments
Issue Links
- links to