Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900583

Coverage files with and w/o a test scale are merged incorrectly

    XMLWordPrintable

Details

    • 1.1
    • generic
    • generic
    • Verified

    Description



      Name: kbR10066 Date: 01/15/2003


      Suppose we have two coverage items with and w/o test scale:

      Item1: (no test scale -> 1 test)
      3 1 13 0

      Item2: (test scale size is 2 -> 2 tests)
      3 1 13 7 #1

      This means that a test (say, test0) has not covered item1,
      test1 has covered item2 and test2 has not covered item2.

      If we merge files containing these (corresponding) items:

      > java com.sun.tdk.jcov.MergerMain -scale item1.jcov item2.jcov

      Then the merged item will be:
      3 1 13 7 #3
      as if all tests (test0, test1 and test2) cover this item, which is
      incorrect. Correctly merged item would look like:
      3 1 13 7 #2
      (only test1 covers this item).
      ======================================================================

      Attachments

        Activity

          People

            afedorch Alexey Fedorchenko (Inactive)
            klooney Kevin Looney (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: