Skip to content

Download and Install

Marc Philipp edited this page Sep 29, 2023 · 35 revisions

To download and install JUnit you currently have the following options.

Plain-old JAR

Download the following JARs and add them to your test classpath:

Maven

Add a dependency to junit:junit in test scope. (Note: 4.13 is the latest stable version as of the latest edit on this page.)

<dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
  <version>4.13</version>
  <scope>test</scope>
</dependency>

Gradle

See Use-with-Gradle