Skip to content

Instantly share code, notes, and snippets.

@codinko
Created January 29, 2023 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codinko/13072ba32d02e6aae1cd14935b5abb7c to your computer and use it in GitHub Desktop.
Save codinko/13072ba32d02e6aae1cd14935b5abb7c to your computer and use it in GitHub Desktop.
-- junit-jupiter-engine alone is good enough to write test cases in Junit 5..
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.1</version>
<scope>test</scope>
</dependency>
-- The above one will add transitive dependencies as below..
Among these dependencies, there is 'junit-jupiter-api' which contains the classes and interfaces that is required to compile your test cases..
: junit-jupter-engine
: junit-platform-engine
: junit-jupiter-api
: junit-platform-commons
etc
------Listing all dependencies incase needed----------
<dependencies>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment