title: How to execute tests in a single class using pom.xml?
body: <p>I have to execute tests in one class. so i added the fallowing code to my "pom.xml". </p>
  
  <pre><code> &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/integration/**&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/configuration&gt;
              &lt;executions&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;${skipTests}&lt;/skip&gt;
                          &lt;excludes&gt;
                              &lt;exclude&gt;**/integration/**&lt;/exclude&gt;
                          &lt;/excludes&gt;
                          &lt;includes&gt;
                              &lt;include&gt;**/integration/reports/**&lt;/include&gt;
                          &lt;/includes&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>under integration folder i have separate folders. So i need to execute the tests which are under reports folder. While executing this command "mvn clean -Dtest=ReportTest test". </p>
  
  <pre><code>Results :
  
  Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
  </code></pre>
  
  <p>How to execute the tests, i need to change pom or execute command.</p>