Inner classes of test classes shown as source code

Still need help?

The Atlassian Community is here for you.

Ask the community

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.

 

Last modified on Jun 1, 2013

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.