title: Maven is automatically skipping tests
body: <p>How come that Maven is skipping all of my tests by default?I have a <code>pom.xml</code> with few profiles and I am not able to run my tests through neither of them. One of my profiles looks like </p>
  
  <pre><code>&lt;profile&gt;
          &lt;id&gt;jsf-test&lt;/id&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.jboss.as&lt;/groupId&gt;
                  &lt;artifactId&gt;jboss-as-arquillian-container-remote&lt;/artifactId&gt;
                  &lt;version&gt;${jboss.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.jsf.tests&lt;/groupId&gt;
                  &lt;artifactId&gt;jsf-app&lt;/artifactId&gt;
                  &lt;version&gt;${jsf-app.version}&lt;/version&gt;
                  &lt;type&gt;war&lt;/type&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
          &lt;build&gt;
              &lt;plugins&gt;                
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.6&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;copy-jsf-app&lt;/id&gt;
                              &lt;phase&gt;validate&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;copy&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;artifactItems&gt;
                                      &lt;artifactItem&gt;
                                          &lt;groupId&gt;com.jsf.tests&lt;/groupId&gt;
                                          &lt;artifactId&gt;jsf-app&lt;/artifactId&gt;
                                          &lt;version&gt;${jsf-app.version}&lt;/version&gt;
                                          &lt;type&gt;war&lt;/type&gt;
                                          &lt;destFileName&gt;jsfapp.war&lt;/destFileName&gt;
                                          &lt;outputDirectory&gt;target&lt;/outputDirectory&gt;
                                      &lt;/artifactItem&gt;
                                  &lt;/artifactItems&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
  
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                      &lt;version&gt;${maven-surefire.version}&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;skipTests&gt;false&lt;/skipTests&gt; &lt;!-- desperate trial --&gt;
                          &lt;properties&gt;
                              &lt;property&gt;
                                  &lt;name&gt;listener&lt;/name&gt;
                                  &lt;value&gt;${testng.listeners}&lt;/value&gt;
                              &lt;/property&gt;
                          &lt;/properties&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
      &lt;/profile&gt;
  </code></pre>
  
  <p>If I run <code>mvn verify -Pjsf-test</code> then the project is compiled, <code>jsf-app</code> artifact is correctly copied into target directory and tests are skipped. <code>mvn verify -Dtest=TestCalculator</code> has the same result. I am using <code>Arquillian</code> and <code>TestNG</code> to perform the actual tests but I am not sure if it matters for this question.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Running in debug will give (the relevant part)</p>
  
  <pre><code>[DEBUG]   (s) reportFormat = brief
  [DEBUG]   (s) reportsDirectory = /home/pmensik/Work/workspace/epp-test/cdi-arquillian-    test/target/surefire-reports
  [DEBUG]   (f) reuseForks = true
  [DEBUG]   (s) runOrder = filesystem
  [DEBUG]   (s) skip = true
  [DEBUG]   (s) skipTests = false
  [DEBUG]   (s) systemPropertyVariables = {jsfPortlet=true}
  [DEBUG]   (s) testClassesDirectory = /home/pmensik/Work/workspace/epp-test/cdi-arquillian-test/target/test-classes
  [DEBUG]   (s) testFailureIgnore = false
  [DEBUG]   (s) testNGArtifactName = org.testng:testng
  [DEBUG]   (s) testSourceDirectory = /home/pmensik/Work/workspace/epp-test    /cdi-arquillian-test/src/test/java
  [DEBUG]   (s) trimStackTrace = true
  [DEBUG]   (s) useFile = true
  [DEBUG]   (s) useManifestOnlyJar = true
  [DEBUG]   (s) useSystemClassLoader = true
  [DEBUG]   (s) useUnlimitedThreads = false
  [DEBUG]   (s) workingDirectory = /home/pmensik/Work/workspace/epp-test/cdi-arquillian-test
  [DEBUG]   (s) project = MavenProject: org.jboss.gatein.test:cdi-portlet-test:6.1-ER01 @ /home/pmensik/Work/workspace/epp-test/cdi-arquillian-test/pom.xml
  [DEBUG]   (s) session = org.apache.maven.execution.MavenSession@3c3483ec
  [DEBUG] -- end configuration --
  [INFO] Tests are skipped.
  </code></pre>
  
  <p>My simplest test looks like this</p>
  
  <pre><code>public class Test {
  
      @Drone
      protected WebDriver driver;
  
      @Deployment(testable = false)
      public static WebArchive createTestArchive() {
          return ShrinkWrap.createFromZipFile(WebArchive.class, new File("target/CDIPortlet.war"));
      }
  
      @Test
      public void testCase{
          //...
      }
  
  }
  </code></pre>