default code coverage settings

Hi,

I want to set the default code coverage setting on for JUnit run configurations, however, when I click on "Edit Default" and switch to the Code Coverage tab, the two checkboxes at the top are grayed out and a warning is shown saying "Code coverage is supported for jre 5.0 and higher" I am running Java 5 and have no problems enabling code coverage for individual tests. Is this a bug?


thanks
D.

Build #6107

2 comments
Comment actions Permalink

Hi,

I want to set the default code coverage setting on
for JUnit run configurations, however, when I click
on "Edit Default" and switch to the Code Coverage
tab, the two checkboxes at the top are grayed out and
a warning is shown saying "Code coverage is supported
for jre 5.0 and higher" I am running Java 5 and have
no problems enabling code coverage for individual
tests. Is this a bug?


thanks
D.

Build #6107


I am seeing this also with build 6656 and JDK 1.5.0_06 (Sun JVM on WindowsXP).

I don't see this warning when trying to set the code coverage for specific saved test case run/debug config - only when I try and set the default.

Is anyone else able to enable the code coverage by default?

Thanks,
Gavin

0
Comment actions Permalink

In case anyone else stubles upon this, one work around is to explictly force the JDK in the JUnit defaults (rather than use the module default JVM even if the module default is the same JDK).

The default checkboxes become available for me after this.

0

Please sign in to leave a comment.