# JUnit

✅ The programmer-friendly testing framework for Java and the JVM

Repository: https://github.com/junit-team/junit-framework
Canonical: https://ross.abutalabs.com/products/junit
Homepage: https://junit.org
Language: Java
License: EPL-2.0
License Family: copyleft
Topics: java, test-framework, junit, junit-vintage, junit-jupiter, junit-platform, kotlin, kotlin-testing
Last push: 2026-08-26T21:49:43+00:00
Link (homepage): https://junit.org
Link (site_page): https://docs.junit.org

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 4252, "days_push": 7, "days_rel": 26, "gap_med": 18.5, "n_releases_24m": 27}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7041, forks 1706 (observed 2026-08-28T04:09:55.319134+00:00)

## What it is
JUnit is the standard programmer-friendly testing framework for Java and the JVM, composed of the JUnit Platform (test launcher foundation), Jupiter (modern programming and extension model), and Vintage (legacy JUnit 3/4 engine). It requires Java 17+ and integrates with major IDEs and build tools.

## Use cases
- write unit tests for Java code
- run JUnit 4 tests alongside JUnit 5 tests
- build a custom test engine on the JVM
- run tests from the command line
- integrate testing into Gradle or Maven builds
- write tests in Kotlin

## When to choose
- you are writing or migrating tests for Java or JVM projects
- you need a modern, extensible test framework with IDE and build tool support
- you maintain legacy JUnit 3/4 tests and want to run them on a unified platform

## When to avoid
- your project runs on Java below version 17
- you need a testing framework for non-JVM languages

## Facets
- artifact type: framework
- maturity: stable
- function: testing, e2e-testing, developer-tools
- domain: testing, developer-tools, programming-languages
- platform: jvm, cross-platform
- tags: unit-testing, junit-jupiter, junit-platform, junit-vintage, kotlin-testing, test-runner

## Member repositories
- junit-team/junit-framework (main) score 98
- junit-team/junit-examples (examples) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:55.319134+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:40:32.869107+00:00, confidence not recorded.
  - readme: https://github.com/junit-team/junit-framework (fetched 2026-08-28T04:09:55.319134+00:00, sha b57897b1550b)
  - homepage: https://junit.org (fetched 2026-08-29T08:36:19.197514+00:00, sha 6a3fb8ea9fd0)
  - site_page: https://docs.junit.org (fetched 2026-08-29T08:36:19.206543+00:00, sha 33b0a6e052b5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
