title: Maven failsafe plugin doesn't run parallel Test
body: <p>I have a Maven POM file and when I provide parallel execution options, I dont see any signs of parallel execution in the logs. And XML debugging is driving me nuts. Any thoughts what is wrong here?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
     &lt;parent&gt;
        &lt;groupId&gt;com.xxx.xxxx.testing.ranger&lt;/groupId&gt;
        &lt;artifactId&gt;ranger-parent&lt;/artifactId&gt;
        &lt;relativePath&gt;../parent/pom.xml&lt;/relativePath&gt;
        &lt;version&gt;1.0.0&lt;/version&gt;
     &lt;/parent&gt;
     &lt;artifactId&gt;ranger-api-tests&lt;/artifactId&gt;
     &lt;name&gt;Ranger API Tests&lt;/name&gt;
     &lt;description&gt;Ranger API integration tests. Depends on the Ranger test framework project.&lt;/description&gt;
     &lt;properties&gt;
        &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
        &lt;test.groups /&gt;
        &lt;surefire.and.failsafe.report.dir&gt;C:/Users/xxx/Documents/Projects/LearnCubeAPIIT/tests/target&lt;/surefire.and.failsafe.report.dir&gt;
     &lt;/properties&gt;
     &lt;dependencies&gt;
        &lt;!-- Granite Testing framework --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;com.xxx.xxxx.testing.ranger&lt;/groupId&gt;
           &lt;artifactId&gt;ranger-api-it-framework&lt;/artifactId&gt;
           &lt;version&gt;1.0.0&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;commons-lang&lt;/groupId&gt;
           &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
           &lt;version&gt;2.4&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;commons-httpclient&lt;/groupId&gt;
           &lt;artifactId&gt;commons-httpclient&lt;/artifactId&gt;
           &lt;version&gt;3.1&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.maven.surefire&lt;/groupId&gt;
           &lt;artifactId&gt;surefire-junit47&lt;/artifactId&gt;
           &lt;version&gt;2.16&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;junit&lt;/groupId&gt;
           &lt;artifactId&gt;junit&lt;/artifactId&gt;
           &lt;version&gt;4.11&lt;/version&gt;
        &lt;/dependency&gt;
     &lt;/dependencies&gt;
     &lt;build&gt;
        &lt;plugins&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.16&lt;/version&gt;
              &lt;configuration&gt;
                 &lt;parallel&gt;classes&lt;/parallel&gt;
                 &lt;threadCount&gt;4&lt;/threadCount&gt;
                 &lt;reportsDirectory&gt;${project.build.directory}/surefire-reports&lt;/reportsDirectory&gt;
                 &lt;groups&gt;${test.groups}&lt;/groups&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                 &lt;execution&gt;
                    &lt;goals&gt;
                       &lt;goal&gt;integration-test&lt;/goal&gt;
                       &lt;goal&gt;verify&lt;/goal&gt;
                    &lt;/goals&gt;
                 &lt;/execution&gt;
              &lt;/executions&gt;
           &lt;/plugin&gt;
        &lt;/plugins&gt;
     &lt;/build&gt;
     &lt;reporting&gt;
        &lt;plugins&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-report-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.16&lt;/version&gt;
              &lt;configuration&gt;
                 &lt;reportsDirectory&gt;${project.build.directory}/surefire-reports&lt;/reportsDirectory&gt;
              &lt;/configuration&gt;
              &lt;reportSets&gt;
                 &lt;reportSet&gt;
                    &lt;id&gt;integration-tests&lt;/id&gt;
                    &lt;reports&gt;
                       &lt;report&gt;failsafe-report-only&lt;/report&gt;
                       &lt;report&gt;report-only&lt;/report&gt;
                    &lt;/reports&gt;
                 &lt;/reportSet&gt;
              &lt;/reportSets&gt;
           &lt;/plugin&gt;
        &lt;/plugins&gt;
     &lt;/reporting&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Logs from run - <a href="http://pastebin.com/WkCDwYzJ" rel="noreferrer">http://pastebin.com/WkCDwYzJ</a></p>
  
  <p>Question - When parallel execution options are passed to failsafe plugin, how are the logs supposed to look like to confirm that parallel execution of tests is taking place?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I noticed that when I set debug option for maven to execute, I noticed that parallelExecution is being set to false</p>
  
  <pre><code>[DEBUG] Populating class realm plugin&gt;org.apache.maven.plugins:maven-surefire-plugin:2.12.4--1057774753
  [DEBUG]   Included: org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4
  [DEBUG]   Included: org.apache.maven.surefire:surefire-booter:jar:2.12.4
  [DEBUG]   Included: org.apache.maven.surefire:surefire-api:jar:2.12.4
  [DEBUG]   Included: org.apache.maven.surefire:maven-surefire-common:jar:2.12.4
  [DEBUG]   Included: org.apache.commons:commons-lang3:jar:3.1
  [DEBUG]   Included: org.apache.maven.shared:maven-common-artifact-filters:jar:1.3
  [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.0.8
  [DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.9
  [DEBUG]   Included: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1
  [DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-project:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-settings:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-profile:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-model:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.9
  [DEBUG]   Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
  [DEBUG]   Excluded: junit:junit:jar:3.8.1
  [DEBUG]   Excluded: org.apache.maven:maven-core:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.9
  [DEBUG]   Excluded: org.apache.maven:maven-monitor:jar:2.0.9
  [DEBUG]   Excluded: classworlds:classworlds:jar:1.1
  [DEBUG]   Excluded: org.apache.maven:maven-toolchain:jar:2.0.9
  [DEBUG] Configuring mojo org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test from plugin realm ClassRealm[plugin&gt;org.apache.maven.plugins:maven-surefire-plugin:2.12.4--1057774753, parent: sun.misc.Launcher$AppClassLoader@7987aeca]
  [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test' with basic configurator --&gt;
  [DEBUG]   (s) basedir = /Users/nallagun/Git/testing/Ranger/tests
  [DEBUG]   (s) childDelegation = false
  [DEBUG]   (s) classesDirectory = /Users/nallagun/Git/testing/Ranger/tests/target/classes
  [DEBUG]   (s) disableXmlReport = false
  [DEBUG]   (s) enableAssertions = true
  [DEBUG]   (s) forkMode = once
  [DEBUG]   (s) junitArtifactName = junit:junit
  [DEBUG]   (s) localRepository =        id: local
        url: file:///Users/nallagun/.m2/repository/
     layout: none
  
  [DEBUG]   (s) parallel = classes
  [DEBUG]   (f) parallelMavenExecution = false
  [DEBUG]   (s) perCoreThreadCount = true
  </code></pre>
  
  <p>Any Idea why this might be happening?</p>
  
  <p>Thanks</p>