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

Implement GrowablePerTestRecorder and use it for Android instrumentation

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Medium Medium
    • someday
    • None
    • Instrumentation
    • None
    • Severity 2 - Major

      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).

            [CLOV-1194] Implement GrowablePerTestRecorder and use it for Android instrumentation

            No work has yet been logged on this issue.

              Unassigned Unassigned
              mparfianowicz Marek Parfianowicz
              Affected customers:
              1 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: