junit-team/junit4
A programmer-oriented testing framework for Java — :warning: maintenance mode observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 97
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 6441
- days_rel: n/a
- days_push: 20
- n_releases_24m: 0
Adoption not part of the score
8515 stars · 3261 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
JUnit 4 is a programmer-oriented unit testing framework for Java, following the xUnit architecture with annotations, assertions, and Hamcrest matchers. It is now in maintenance mode, receiving only critical bug and security fixes, with active development moved to the successor junit-framework repository.
Use cases
- write unit tests for java code
- run repeatable tests with @Test annotations
- parameterized testing in java
- exception testing with expected failures
- legacy java project still on junit 4
- expressive assertions with hamcrest matchers
When to choose
- maintaining or extending an existing Java codebase already using JUnit 4
- a legacy tool or build setup requires the JUnit 4 API
- you only need critical bug/security fixes on a stable test framework
When to avoid
- starting a new Java project - use JUnit 5 (junit-framework) instead
- you need ongoing feature development, new runners, or modern extension points
- you want long-term community support and active issue triage
Facets
framework · maturity maintenance
testing testing developer-tools programming-languages jvm cross-platform unit-testing xunit java test-runner hamcrest annotations legacy
5 sources
- readme: https://github.com/junit-team/junit4 · fetched 2026-08-28 · fb0ccdaf14aa
- homepage: https://junit.org/junit4 · fetched 2026-08-29 · 69e44faa1c9d
- site_page: https://junit.org/junit4/faq.html · fetched 2026-08-29 · 62dc9b719b7e
- site_page: https://junit.org/junit4/index.html · fetched 2026-08-29 · fbb39705ec02
- site_page: https://junit.org/junit4/javadoc/latest/index.html · fetched 2026-08-29 · b50cb4475c4d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| junit-team/junit4 | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="junit-team/junit4")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem