title: Cobertura code coverage is wrong
body: <p>I am have been trying to setup code coverage on my local Jenkins server with Maven.  It would seem that my tests are not being included in the coverage reports.</p>
  
  <p>I have the following in my pom.xml:  </p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;sonar-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.0&lt;/version&gt;
  &lt;/plugin&gt;
  &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;cobertura-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.5.2&lt;/version&gt;
          &lt;configuration&gt;
          &lt;check&gt;
          &lt;haltOnFailure&gt;false&lt;/haltOnFailure&gt;
              &lt;totalLineRate&gt;85&lt;/totalLineRate&gt;
          &lt;/check&gt;
          &lt;formats&gt;
              &lt;format&gt;xml&lt;/format&gt;
              &lt;format&gt;html&lt;/format&gt;
          &lt;/formats&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;clean&lt;/id&gt;
                  &lt;phase&gt;pre-site&lt;/phase&gt;
                  &lt;goals&gt;
                     &lt;goal&gt;clean&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;/execution&gt;
              &lt;execution&gt;
                  &lt;id&gt;instrument&lt;/id&gt;
                  &lt;phase&gt;site&lt;/phase&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;instrument&lt;/goal&gt;
                      &lt;goal&gt;cobertura&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>and here is where I define the tests to be run</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;!-- Separates the unit tests from the integration tests. --&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
          &lt;skip&gt;true&lt;/skip&gt;
          &lt;trimStackTrace&gt;false&lt;/trimStackTrace&gt;
          &lt;/configuration&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;unit-tests&lt;/id&gt;
              &lt;phase&gt;test&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;test&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;skip&gt;false&lt;/skip&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*Test*.java&lt;/include&gt;
                  &lt;/includes&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/*IT.java&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
  
          &lt;execution&gt;
              &lt;id&gt;integration-tests&lt;/id&gt;
              &lt;phase&gt;integration-test&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;test&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;skip&gt;false&lt;/skip&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*IT.java&lt;/include&gt;
                  &lt;/includes&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>And on my Jenkins server I am have the following:
  Jenkins Configuration:
      Sonar
      Sonar name:sonar local 3.5.1
      server url: <code>http://local host:9000</code></p>
  
  <p>Project level:
      publish Cobertura Coverate Report:
      xml report pattern: **/target/site.covertura/coverage.xml</p>
  
  <p>But when I run either the maven task "mvn cobertura:cobertura" or view the sonar reports in Jenkins, all the coverage is at 0%, which makes me think my unit and integration tests are not being seen.  </p>
  
  <p>Is this a problem with the way my pom separates unit and integration tests?</p>