Skip to content
EntityQ847675· pop 25· linked from 78 articles

JUnit is a test automation framework for the Java programming language. JUnit is often used for unit testing, and is one of the xUnit frameworks.

Key facts

Software.name
JUnit
Software.developer
Kent Beck, Erich Gamma, David Saff
Software.latest release version
6.0.1
Software.operating system
Cross-platform
Software.programming language
Java
Software.genre
Unit testing tool
Software.license
Eclipse Public License 2.0 (relicensed previously)

via Wikipedia infobox

Source code

Latest Releases General Availability (GA): JUnit 6.1.2 (July 12, 2026) Preview (Milestone/Release Candidate): N/A Contributions to JUnit are both welcomed and appreciated. For specific guidelines regarding contributions, please see [CONTRIBUTING.md] in the root directory of the project. Those willing to use milestone or SNAPSHOT releases are encouraged to file feature requests and bug reports using the project's issue tracker. Issues marked with an up-for-grabs label are specifically targeted for community contributions. Official CI build that performs quick checks on submitted pull requests and runs build matrices for the latest release and early access versions of OpenJDK. Code coverage using [JaCoCo] for the latest build is available on [Codecov]. JUnit utilizes Develocity for Build Scans, Build Cache, and Predictive Test Selection. The latest Build Scans are available on ge.junit.org. Currently, only core team members can publish Build Scans on that server. You can, however, publish a Build Scan to scans.gradle.com by using the --scan parameter explicitly. The remote Build Cache is enabled by default for everyone so that local builds can reuse task outputs from previous CI builds. You need [JDK 25] to build JUnit. [Gradle toolchains] are used to detect and potentially download additional JDKs for compilation and test execution. Consult the [Dependency Metadata] section of the [User Guide] for a list of all artifacts of the JUnit Platform, JUnit Jupiter, and JUnit Vintage. [Codecov]: [CONTRIBUTING.md]: [Dependency Metadata]: [GitHub Discussions]: [Gradle toolchains]: [Gradle Wrapper]: [JaCoCo]: [Javadoc]: [JDK 25]: [Release Notes]: [Examples]: [StackOverflow]: [User Guide]:

Excerpt from the source-code README · 5,726 chars · not written by Vinony

Wikidata facts

Official website
junit.org
Show 5 more facts
software version identifier
6.0.3
social media followers
385
source code repository URL
git://github.com/junit-team/junit5.git
Sources (4)

via Wikidata · CC0

~9 min read

Article

13 sections
Contents
  • JUnit Lifecycle
  • Integration with other tools
  • Build Tools
  • Ant Extension
  • Maven Extension
  • Gradle Extension
  • JUnit Extension Model
  • Example of a JUnit test fixture
  • Previous versions of JUnit
  • See also
  • Citations
  • References
  • External links

JUnit is a test automation framework for the Java programming language. JUnit is often used for unit testing, and is one of the xUnit frameworks.

JUnit is linked as a JAR at compile-time. The latest version of the framework, JUnit 6, resides under package . Previous versions JUnit 4 and JUnit 3 were under packages and , respectively.

Connections

Categories