OSS Tanbou

JUnit — Java/JVM testing built around Platform and Jupiter

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
7,053
Primary language
Java
License
EPL-2.0
Repository last updated
Sep 19, 2026

Overview

JUnit is a widely used testing framework for Java and other JVM languages. JUnit Platform provides discovery and execution infrastructure, while JUnit Jupiter supplies the modern test programming and extension model. Vintage exists for legacy JUnit 3/4 compatibility.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Write tests, assertions, lifecycle hooks, and extensions with Jupiter

Annotations such as @Test and @BeforeEach, assertions, parameterized tests, and extensions cover common unit and integration testing needs.

Sources: [2][4]

Run multiple engines through a common Platform

JUnit Platform standardizes test discovery and execution for Gradle, Maven, IDEs, the Console Launcher, and third-party engines.

Sources: [2][4]

For automated Java/Kotlin testing in builds and CI

JUnit fits JVM projects that need repeatable unit and application-level test suites integrated into build failure conditions.

Sources: [2][4]

Prefer Jupiter for new tests instead of expanding Vintage usage

Current source marks JUnit Vintage deprecated and intended only as a temporary bridge for JUnit 3/4 tests while migrating to Jupiter or another Platform-native framework.

Sources: [5]

Official sources

  1. [1]junit-team/junit-framework repository(2026-09-20)
  2. [2]JUnit README(2026-09-20)
  3. [3]JUnit EPL-2.0 license(2026-09-20)
  4. [4]JUnit User Guide(2026-09-20)
  5. [5]JUnit Vintage deprecation source(2026-09-20)
Supplemental curator note

For new Java tests, Jupiter is the primary programming model. The Platform hosts test engines, while Vintage exists for temporarily running JUnit 3/4 tests and is explicitly deprecated in current code. The latest GA listed in the README is JUnit 6.1.3, released August 7, 2026.

Try it in 3 steps

  1. 1

    Add JUnit Jupiter 6.1.3 as a test dependency

    Use the current GA release listed by the project and write new tests with the Jupiter API.

    Add org.junit.jupiter:junit-jupiter:6.1.3 to Maven or Gradle test dependencies
  2. 2

    Write a minimal test

    Create a minimal test using org.junit.jupiter.api.Test and Assertions.assertEquals.

    @Test void adds() { assertEquals(4, 2 + 2); }
  3. 3

    Run tests through the build tool

    Run Jupiter through the JUnit Platform and verify discovery and execution.

    ./mvnw test or ./gradlew test
Check the official README

Growth

Growth trends · Last 30 days

7,053 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
55
Open PRs
12
Issues opened
19
Issues closed
16
PRs opened
259
PRs merged
248

Issues

19 / 16

Jun 23Sep 20
Issues openedIssues closed

Pull requests

259 / 248

Jun 23Sep 20
PRs openedPRs merged

Maintenance

Median first response
2.0 hr
Issue response rate
78.6% (11/14)

Based on up to the 100 newest issues opened by external users in the last 90 days. A first comment from an OWNER, MEMBER, or COLLABORATOR counts as a response; issues whose full comment history cannot be checked are excluded. The median and response rate update weekly.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • java
  • test-framework
  • junit
  • junit-vintage
  • junit-jupiter
  • junit-platform
  • kotlin
  • kotlin-testing
Stars
7,053
Forks
1,709
Watchers
265
Open issues
106
Contributors
265
Primary language
Java
License
EPL-2.0
Repository last updated
Sep 19, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.