JUnit
Sign in to saveJUnit 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
Article · Italiano
In informatica JUnit è un framework di unit testing per il linguaggio di programmazione Java. L'esperienza avuta con JUnit è stata importante nella crescita dell'idea di sviluppo guidato da test (in inglese Test Driven Development), ed è uno di una famiglia di framework di unit testing noti collettivamente come xUnit. JUnit è stato creato da Kent Beck insieme ad Erich Gamma. Da allora ha ispirato ed è stato modello guida per diversi framework di unit testing per altri linguaggi. Il framework è attualmente alla versione 5, che è organizzata in 3 sotto-progetti / moduli e necessita di java versione 8 o più recente.La versione 4 ha portato modifiche strutturali rispetto alla versione 3, con la quale è incompatibile. Le classi che costituiscono il framework appartengono a package diversi per le versioni 3 e 4; junit.framework fino a 3.8, org.junit dalla 4.
Abstract from DBpedia / Wikipedia · CC BY-SA