Product: Clover
Environment
| Operating System | |
|---|---|
| Affect Version/s | |
| JVM | |
| Database | |
| Application Server |
Error Message
Symptom
In the clover report, inner classes of test cases (*TestCase.java) are shown as source classes, they are shown under the "classes" tab in the bottom left frame, and not under the "Tests" tab, as would be expected.
Diagnostics/Test
Root Cause
Clover's default test detection algorithm failed to distinguish the test sources.
Solution
In Clover for Ant use the <testsources/> element in the <clover-report/> task to define test sources filename. This feature is currently not available for Clover for Maven: http://developer.atlassian.com/jira/browse/CLMVN-21
