Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1194

Implement GrowablePerTestRecorder and use it for Android instrumentation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: someday
    • Component/s: Instrumentation
    • Labels:
      None
    • Symptom Severity:
      Severity 2 - Major

      Description

      Problem:
      https://answers.atlassian.com/questions/107086/error-message-arrayindexoutofbounds-with-clover-for-android

      Background:
      A per-test recorder is instantiated with a fixed size equal to capacity for the main coverage recorder. Because of the fact that for Android the growable version of the main coverage recorder is used, as soon as it grows, per-test recorders remain with old, too small size.

      Workaround:
      Disable per-test instrumentation.

      Fix:
      Implement GrowablePerTestRecorder class with a dynamically resizeable BitSet. Instantiate either PerTestRecorder or GrowablePerTestRecorder depending on whether FixedSizeReorder or GrowableRecorder is used.

      See also CLOV-1189 problem related with Grails, where such recorder will be also needed (but used in conjunction with FixedSizeRecorder).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mparfianowicz Marek Parfianowicz
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: