title: Any way to run JUnit5 tests in parallel?
body: <p>Previously I was using Maven+Selenide+JUnit4 for my tests and it was fine, parallel running worked perfectly. Example:</p>
  
  <pre><code>&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;version&gt;${maven.surefire.plugin}&lt;/version&gt;
      &lt;configuration&gt;
          &lt;parallel&gt;all&lt;/parallel&gt;
          &lt;perCoreThreadCount&gt;true&lt;/perCoreThreadCount&gt;
          &lt;threadCount&gt;4&lt;/threadCount&gt;
          &lt;perCoreThreadCount&gt;false&lt;/perCoreThreadCount&gt;
          &lt;redirectTestOutputToFile&gt;true&lt;/redirectTestOutputToFile&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p></p>
  
  <p>And in Jenkins job I was able to run tests (example below)</p>
  
  <pre><code>mvn -Dtest=TestClassName test
  </code></pre>
  
  <p>My tests were running in 4 browsers.</p>
  
  <p>Before I switched to JUnit5, because I would like to use running tests by tags, for example </p>
  
  <pre><code>@Test
  @Tag("smoke")
  public void test1() {}
  </code></pre>
  
  <p>And run all tests which marked as 'smoke' by next command:</p>
  
  <pre><code>mvn -Dtag=smoke test
  </code></pre>
  
  <p>But I got next problem: parallel execution does not work and I still did not find solution.
  I found this bug <a href="https://github.com/junit-team/junit5/issues/1424" rel="noreferrer">https://github.com/junit-team/junit5/issues/1424</a> </p>
  
  <p>How can I run tests in parallel with JUnit5?</p>
  
  <p>I have tried to use in <strong>pom.xml</strong></p>
  
  <pre><code>&lt;forkCount&gt;2&lt;/forkCount&gt;
  &lt;reuseForks&gt;true&lt;/reuseForks&gt;
  &lt;parallel&gt;all&lt;/parallel&gt;
  </code></pre>
  
  <p>It did not help, I have created a file <strong>junit-platform.properties</strong> and insert there </p>
  
  <pre><code>junit.jupiter.execution.parallel.enabled = true
  junit.jupiter.execution.parallel.config.strategy = fixed
  </code></pre>
  
  <p>But anyway I was not able to solve this problem.</p>