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.
via Wikipedia infobox
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]:
~9 min read
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.
Excerpt from the source-code README · 5,726 chars · not written by Vinony
via Wikidata · CC0
via Wikidata sitelinks · CC0
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).