title: Clover Code Coverage: Instrumenting Unit Tests
body: <p>I'm using Clover for code coverage and I have the following setup in my pom.xml file.</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;com.atlassian.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-clover2-plugin&lt;/artifactId&gt;
              &lt;version&gt;4.0.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;generateHtml&gt;true&lt;/generateHtml&gt;
                  &lt;generateXml&gt;false&lt;/generateXml&gt;
                  &lt;includesTestSourceRoots&gt;false&lt;/includesTestSourceRoots&gt;
                  &lt;includesAllSourceRoots&gt;true&lt;/includesAllSourceRoots&gt;
                  &lt;license&gt;MyLicense&lt;/license&gt;
                  &lt;jdk&gt;1.8&lt;/jdk&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/classes/&lt;/exclude&gt;
                      &lt;exclude&gt;**/generated-sources/&lt;/exclude&gt;                  
                  &lt;/excludes&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;main&lt;/id&gt;
                      &lt;phase&gt;verify&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;instrument&lt;/goal&gt;
                          &lt;goal&gt;check&lt;/goal&gt;
                          &lt;goal&gt;log&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;site&lt;/id&gt;
                      &lt;phase&gt;pre-site&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;instrument&lt;/goal&gt;
                          &lt;goal&gt;clover&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>Then I run Maven the following way:</p>
  
  <pre><code>mvn clean install  clover2:instrument clover2:instrument-test   clover2:aggregate clover2:clover
  </code></pre>
  
  <p>Though I see code coverage and other details, I see the following warning:</p>
  
  <p><strong>No test results
  No test results could be found. Please ensure that you have instrumented your unit tests correctly.</strong></p>
  
  <p>What does this mean? How do I instrument Junit test case classes for Clover?</p>