Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-587

Jacoco coverage report is not generated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.5.2
    • None

    Description

      When running tests, the jacoco coverage report is not generated. The jacoco plugin is loaded, it sets the correct Java Agent line, bit it fails to find the execution data file after tests complete.

      Example:

      mvn test -Dtest=TestHoodieActiveTimeline

      ...

      22:42:40 [INFO] — jacoco-maven-plugin:0.7.8:prepare-agent (pre-unit-test) @ hudi-common —
      22:42:40 [INFO] surefireArgLine set to javaagent:/home/pwason/.m2/repository/org/jacoco/org.jacoco.agent/0.7.8/org.jacoco.agent-0.7.8-runtime.jar=destfile=/home/pwason/work/java/incubator-hudi/hudi-common/target/coverage-reports/jacocout.exec

      ...

      22:42:49 [INFO] — jacoco-maven-plugin:0.7.8:report (post-unit-test) @ hudi-common —
      22:42:49 [INFO] Skipping JaCoCo execution due to missing execution data file.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pwason Prashant Wason
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Time Spent - 20m Remaining Estimate - 40m
                  40m
                  Logged:
                  Time Spent - 20m Remaining Estimate - 40m
                  20m