title: Migration from Junit 4 to Junit 5 - Test case are getting skipped
body: <p>I have migrated my junit 4 code to junit 5 with the below version dependencies.</p>
  
  <pre><code> &lt;dependency&gt;
          &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
          &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
          &lt;version&gt;5.3.1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.junit.platform&lt;/groupId&gt;
          &lt;artifactId&gt;junit-platform-runner&lt;/artifactId&gt;
          &lt;version&gt;1.3.1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.mockito&lt;/groupId&gt;
          &lt;artifactId&gt;mockito-junit-jupiter&lt;/artifactId&gt;
          &lt;version&gt;2.22.0&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>One of my scripts uses the command </p>
  
  <pre><code>mvn -B verify -DforkCount=1 -DreuseForks=false
  </code></pre>
  
  <p>But the issue I am facing is after migrating to junit5 while running it skips the testcase.</p>
  
  <p>I am using <code>maven-surefire-plugin -  version 2.22.0.</code></p>
  
  <p>While running it just print the below line </p>
  
  <p>Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 </p>
  
  <p>I even tried the below configurations but no help</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;version&gt;2.22.0&lt;/version&gt;
          &lt;configuration&gt;
              &lt;properties&gt;
                  &lt;configurationParameters&gt;
                      junit.jupiter.conditions.deactivate = *
                      junit.jupiter.extensions.autodetection.enabled = true
                      junit.jupiter.testinstance.lifecycle.default = per_class
                      junit.jupiter.execution.parallel.enabled = true
                  &lt;/configurationParameters&gt;
              &lt;/properties&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  &lt;/plugins&gt;
  </code></pre>
  
  <p></p>
  
  <p>My maven version is <code>3.3.9</code></p>
  
  <p>and does not run the test case. Any specific reason why I am facing this strange issue. The same test case with JUnit 4 earlier worked fine.</p>
  
  <p>After further analysis what I found the command => <code>mvn -B verify -DforkCount=1 -DreuseForks=false</code> does not run the test case and skips them. But when i replace the same command with => <code>mvn -B verify -DforkCount=1 -DreuseForks=true</code> , it starts working. I understand that properties forkCount=1/reuseForks=true, which means that maven-surefire-plugin creates one new JVM process to execute all tests in one Maven module but want to know why it does not work with <code>mvn -B verify -DforkCount=1 -DreuseForks=false</code> command. Is any maven or maven helper version upgrade is required for Junit5 migration? </p>