Details
-
Bug
-
Resolution: Won't Fix
-
Low
-
2.5
-
None
-
Severity 3 - Minor
Description
I disabled Clover to run tomcat. Then, I re-enabled Clover with Rebuild policy "Rebuild Immediately". I ran some unit tests and got an error kind of like this:
WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 857, actual size: 0
WARN: CLOVER: No coverage data will be gathered.
I then disabled Clover (to see if I could duplicate the error), renabled with the same settings, and ran some unit tests, and got this actual error:
WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 857, actual size: 796
WARN: CLOVER: No coverage data will be gathered.
(The second error is a copy and paste from my console, the first is from memory as I remember distinctly the "actual size 0" part of it). In fact, the second error ends with a stacktrace:
WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 857, actual size: 796
WARN: CLOVER: No coverage data will be gathered.
WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 848, actual size: 796
WARN: CLOVER: No coverage data will be gathered.
WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 1300, actual size: 796
WARN: CLOVER: No coverage data will be gathered.
WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 1378, actual size: 796
WARN: CLOVER: No coverage data will be gathered.
java.lang.ArrayIndexOutOfBoundsException: 814
at com_cenqua_clover.CoverageRecorder.inc(CoverageRecorder.java:410)
at com.atlassian.plugins.domain.model.vendor.SupportOrganisation.getSupportDetails(SupportOrganisation.java:58)
at com.atlassian.plugins.domain.model.vendor.SupportOrganisationTest.testBeforeMarshal_ExpandedTrue(SupportOrganisationTest.java:15)
I can't remember if the first one did or not.
I'm running IDEA 8.1.2 build 9852. Attached is a screenshot of my Clover settings.
I'm raising this as a bug because the behaviour I expected was for my unit tests to run as per normal and the coverage data become available.