title: Run JUnit 5 tests contained in JAR with JUnit 5 Console Launcher
body: <p>I have a fat JAR called <code>smoke-tests-fat-1.0.0-SNAPSHOT.jar</code> containing JUnit 5 tests. The tests are annotated with <code>org.junit.jupiter.api.Test</code> at the method level.</p>
  
  <p>I now want to execute these tests with the JUnit 5 <a href="https://junit.org/junit5/docs/current/user-guide/#running-tests-console-launcher" rel="nofollow noreferrer">Console Launcher</a>. However, it seems that I can't get it right.</p>
  
  <p>I have tried:</p>
  
  <ul>
  <li><code>java -jar junit-platform-console-standalone.jar --classpath smoke-tests-fat-1.0.0-SNAPSHOT.jar --scan-classpath</code></li>
  <li><code>java -jar junit-platform-console-standalone.jar --classpath smoke-tests-fat-1.0.0-SNAPSHOT.jar --select-package=my.package</code></li>
  </ul>
  
  <p>But neither command works. The Console Launcher never finds any tests.</p>
  
  <p>How can I get the Console Launcher to execute my JUnit 5 tests contained in the JAR?</p>