Inner classes of test classes shown as source code
Symptoms
In the clover report, inner classes of test cases (*TestCase.java) are shown as source classes, i.e. they appear under the "Classes" tab in the bottom left frame instead of the "Tests" tab.
Cause
Clover's default test detection algorithm failed to distinguish the test sources. This bug was solved in Clover 2.4:
https://studio.plugins.atlassian.com/browse/CLMVN-21
Resolution
Either upgrade to the latest Clover version or in Clover for Ant use the <testsources/>
element in the <clover-report/>
task to define test sources file names.