Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8215729

Enhance makefiles to allow collecting code coverage with JCov

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 13
    • Component/s: infrastructure
    • Labels:
      None
    • Resolved In Build:
      b04

      Description

      This is next step after JDK-8214309.

      Introduce new make target(s) to run tests with code coverage.

      One needs to have an instrumented build to collect code coverage. Next sequence of steps should be performed:
      1. if a JCov network grabber running
        1.1. stop it
        1.2. wait for it to stop
      2. start JCov network grabber in background
      3. wait for it to start
      4. run tests as usual only against the instrumented build
        4.1. Supply additional memory options (-Xms, -Xmx)
      5. stop JCov network grabber
      6. wait for it to stop
      7. generate report

      Both raw coverage data (a.k.a. result.xml) and the report should be handles as bundles.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shurailine Aleksandre Iline
                Reporter:
                shurailine Aleksandre Iline
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: