Hacker ApprovedDepartments

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%
Each figure is one person. RecommendsCriticizes

Recommended in 4 of 13 months

  1. November 2025: recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: not recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: not recommended
  13. 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.

ArchUnit compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Mockito191359%34 yrs4 owners—
cargo-nextest18195%3——
Vitest17868%8—Approved
Testcontainers14382%8—Approved
ArchUnitThis page60100%4——
See all 8 testing frameworks, ranked

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.”

RecommendsComment from 22 Sep 2026 in “AI Has No Wisdom and Neither Will You”

“that library looks incredibly useful in this modern, agent driven world”

RecommendsComment from 5 Sep 2026 in “AI handles incidents, engineers lose touch with their systems”

“Things like ArchUnit, static analyzers, and other deterministic tools can help with lower level things like architecture.”

RecommendsComment from 4 Aug 2026 in “Agent skills that bring team coding standards to Claude Code and Codex”

“I reckon something like this would be good for every project out there”

RecommendsComment from 24 May 2026 in “Constraint Decay: The Fragility of LLM Agents in Back End Code Generation”

“it's versioned with the project, and it breaks the build deterministically”

RecommendsComment from 13 Nov 2025 in “Why AI code fails differently: What I learned talking to 200 engineering teams”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.