title: How to execute multiple tests at the same time with jBehave?
body: <p>I have some tests created with jBehave and WebDriver. </p>
  
  <p>When I execute them via Maven, the execution is secuencially:</p>
  
  <p>TEST 1</p>
  
  <ul>
  <li>Open navigator</li>
  <li>Execute all the steps of the first story</li>
  <li>Close navigator</li>
  </ul>
  
  <p>TEST 2</p>
  
  <ul>
  <li>Open navigator</li>
  <li>Execute all the steps of the second story</li>
  <li>Close navigator</li>
  </ul>
  
  <p>...</p>
  
  <p>I'm interested in execute the tests simultaneously. According the documentation, this is possible. </p>
  
  <p><a href="http://jbehave.org/reference/stable/multi-threading.html" rel="noreferrer">http://jbehave.org/reference/stable/multi-threading.html</a></p>
  
  <p>I've tried adding the notation to the  "Stories" class, and also executed the mvn command with the threads=5, but doesn't work.</p>
  
  <pre><code>    @UsingEmbedder(threads=5)
      public class EtsyDotComStories extends JUnitStories {
  
      ...
      @Override
      protected List&lt;String&gt; storyPaths() {
      return new StoryFinder().findPaths(codeLocationFromClass(this.getClass()).getFile(), asList("**/*.story"), null);
  
      }
  
          }
  
  
   mvn clean install -s settings.xml -Pjava-spring,codehaus,threads=5
  </code></pre>
  
  <p>Is it possible to execute multiple tests simultaneously?</p>
  
  <p>EDIT:</p>
  
  <p>Added the maven execution part:</p>
  
  <pre><code>&lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.jbehave&lt;/groupId&gt;
          &lt;artifactId&gt;jbehave-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;${jbehave.core.version}&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;embeddable-stories&lt;/id&gt;
              &lt;phase&gt;integration-test&lt;/phase&gt;
              &lt;configuration&gt;
                &lt;includes&gt;
                  &lt;include&gt;**/*Stories.java&lt;/include&gt;
                &lt;/includes&gt;
                &lt;ignoreFailureInStories&gt;true&lt;/ignoreFailureInStories&gt;
                &lt;ignoreFailureInView&gt;false&lt;/ignoreFailureInView&gt;
                &lt;threads&gt;5&lt;/threads&gt;
                &lt;executorsClass&gt;org.jbehave.core.embedder.executors.SameThreadExecutors&lt;/executorsClass&gt;
              &lt;/configuration&gt;
              &lt;goals&gt;
                &lt;goal&gt;run-stories-as-embeddables&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;dependencies&gt;
            &lt;dependency&gt;
              &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
              &lt;artifactId&gt;guava&lt;/artifactId&gt;
              &lt;version&gt;11.0.1&lt;/version&gt;
            &lt;/dependency&gt;
          &lt;/dependencies&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
  </code></pre>