Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-2809

Unable to generate code coverage numbers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 0.7.2, 0.8.0
    • Fix Version/s: None
    • Component/s: build
    • Labels:
      None
    • Environment:

      MacOS Sierra, Java 1.8.0_121-b13. Chromedriver installed.

      Description

      Attempting to generate code coverage reports via cobertura is generating a majority of reports that have "0%" coverage for all classes in a submodule (with the exception of zeppelin-display). All unit tests pass. Running unit tests in Intellij will generate coverage numbers from those unit tests.

      mvn clean
      mvn install -DskipTests -DskipRat
      mvn install -DskipRat -pl "zeppelin-interpreter,zeppelin-zengine,zeppelin-server,zeppelin-display,spark-dependencies,spark" -Dtest="org.apache.zeppelin.AbstractFunctionalSuite" -DfailIfNoTests=false
      

      I've also tried many other build and test configurations taken from the .travis.yml file and documentation, and they all yield the same results.

      I have read this case is likely from the serialize cobertura file not matching up with the instrumented classes (https://github.com/cobertura/cobertura/wiki/FAQ#when-i-generate-coverage-reports-why-do-they-always-show-0-coverage-everywhere). Is it possible the instrumented classes are being ignored/overwritten?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tincman Jonathan Tinkham
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: