ArchUnit
Ranked 8 of 8 testing frameworks by recommenders
Free Java library that enforces architecture rules as tests, breaking the build deterministically when code violates them, so rules get enforced rather than only written down.
Free Java library that enforces architecture rules as tests, breaking the build deterministically when code violates them, so rules get enforced rather than only written down.
6 people gave an opinion
- recommend it
- 6
- criticize it
- 0
- approval share
- 100%
Recommended in 4 of 13 months
- November 2025: recommended
- December 2025: not recommended
- January 2026: not recommended
- February 2026: not recommended
- March 2026: not recommended
- April 2026: not recommended
- May 2026: recommended
- June 2026: not recommended
- July 2026: not recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: not recommended
- November 2026: not recommended (month in progress)
Why it doesn’t carry the badge
- 6 people recommend itNeeds 10 or more, not met.
- Nobody criticizes itNeeds 2 to 1 or better, met.
- Recommended in 4 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Deterministic checks that fail the build
“Things like ArchUnit, static analyzers, and other deterministic tools can help with lower level things like architecture.”
Comment from 4 Aug 2026 in “Agent skills that bring team coding standards to Claude Code and Codex” “it's versioned with the project, and it breaks the build deterministically”
Comment from 13 Nov 2025 in “Why AI code fails differently: What I learned talking to 200 engineering teams” Enforces architecture decisions automatically
“Things like ArchUnit, static analyzers, and other deterministic tools can help with lower level things like architecture.”
Comment from 4 Aug 2026 in “Agent skills that bring team coding standards to Claude Code and Codex” “Enforce architecture decisions (see archunit). But somebody needs to write them down first.”
Comment from 22 Sep 2026 in “AI Has No Wisdom and Neither Will You”
Other testing frameworks people recommend
The four most recommended other testing frameworks, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| Mockito | 19 | 13 | 59% | 3 | 4 yrs4 owners | — |
| cargo-nextest | 18 | 1 | 95% | 3 | — | — |
| Vitest | 17 | 8 | 68% | 8 | — | Approved |
| Testcontainers | 14 | 3 | 82% | 8 | — | Approved |
| ArchUnitThis page | 6 | 0 | 100% | 4 | — | — |
What people said
5 of the 7 comments that mention it, newest first. Each links to the original comment.
“Enforce architecture decisions (see archunit). But somebody needs to write them down first.”
“that library looks incredibly useful in this modern, agent driven world”
“Things like ArchUnit, static analyzers, and other deterministic tools can help with lower level things like architecture.”
“I reckon something like this would be good for every project out there”
“it's versioned with the project, and it breaks the build deterministically”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.