Patrik Nagy created KAFKA-13922:
-----------------------------------

             Summary: Unable to generate coverage reports for the whole project
                 Key: KAFKA-13922
                 URL: https://issues.apache.org/jira/browse/KAFKA-13922
             Project: Kafka
          Issue Type: Bug
          Components: build
    Affects Versions: 2.5.0
            Reporter: Patrik Nagy


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:
{code:java}
./gradlew reportCoverage -PenableTestCoverage=true -Dorg.gradle.parallel=false
{code}
If I run it, the build will fail in the end because of jacocoRootReport:
{code:java}
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. {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to