Search code examples
javajunitjunit4junit5

How to run Junit.Jupiter code through command prompt in windows


For Junit4 compilation and execution, we need junit-4.12.jar and hamcrest-core-1.3.jar can anyone tell me which all jars are needed to execute JUnit Jupiter through command prompt


Solution

  • The easiest way to do that is via the ConsoleLauncher, specifically via the junit-platform-console-standalone JAR as documented in the JUnit 5 User Guide.