Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13922

Unable to generate coverage reports for the whole project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.5.0
    • 3.8.0
    • build

    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

          Activity

            People

              akatona Andras Katona
              pnagy Patrik Nagy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: