Junit5

Open source

JUnit is the testing framework for Java and the JVM; its site now presents JUnit 6, which needs Java 17 and Kotlin 2.1 or above.

junit.org
Junit5 homepage screenshot
GitHub stars
7.1k
Last 30 days
+4(+0%)
Last commit
yesterday
Repository age
11 years
Version
r6.1.3
Licence
EPL-2.0
Self-hosted
Yes

About Junit5

JUnit calls itself the programmer-friendly testing framework for Java and the JVM. The project site, which this listing points to, presents JUnit 6 as the current generation and describes it as a modern foundation for developer-side testing on the JVM that supports many different styles of testing.

JUnit 6 requires Java 17 and Kotlin 2.1 or above. Artifacts are published to Maven Central, and all files are signed with keys listed in a KEYS file. Source code and the issue tracker are on GitHub, with a mirror on Codeberg, and questions go to the discussions area.

The project is funded by sponsors and individual backers, and it asks its users to sponsor it so the team can work with more focus than weekends allow. Core team members also offer commercial support in cooperation with OpenElements, which includes 4-8 hours of support per month and a guaranteed response time. The code is licensed under EPL-2.0.

Key features

  • Testing framework for Java and the JVM
  • Supports many testing styles
  • Artifacts on Maven Central
  • Signed release files
  • Commercial support from core team members

Good fit for

  • Unit testing Java code
  • Unit testing Kotlin code
Tags
testing
java
jvm
kotlin
unit testing
framework

Junit5: questions and answers

What is Junit5 used for?
Junit5 is the testing framework for Java and the JVM; its site now presents JUnit 6, which needs Java 17 and Kotlin 2.1 or above. It is a good fit for unit testing Java code and unit testing Kotlin code.
Is Junit5 open source?
Yes. Junit5 is open source under the EPL-2.0 licence. Its source code is on GitHub at junit-team/junit-framework and is written mainly in Java.
Is Junit5 free?
Yes. Junit5 is open source, so the software itself is free to use.
Can I self-host Junit5?
Yes. Junit5 can be self-hosted on your own server or infrastructure.
What are some alternatives to Junit5?
Similar open-source tools in the Testing & QA category include Apache JMeter, Playwright and Jest. SaaS products in the same category include Codecov, Coveralls and desplega.ai.
Is Junit5 actively maintained?
Yes. The most recent commit to Junit5 was on 12 November 2026. The project has 7.1k stars on GitHub, with 4 added in the last 30 days.

Open-source alternatives to Junit5

See all

SaaS alternatives to Junit5

See all