google/truth
Fluent assertions for Java and Android observed · 2026-08-28
Health v2 · maintenance only
69/100
- Activity 97
- Release rhythm 15
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5551
- days_rel: 357
- days_push: 23
- n_releases_24m: 1
Adoption not part of the score
2787 stars · 273 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Truth is a fluent assertion library for Java and Android tests, maintained by the Guava team and used widely in Google's codebase. It provides readable assertThat-style assertions with detailed failure messages and native support for many JDK and Guava types.
Use cases
- write readable assertions in Java unit tests
- get clearer failure messages than assertEquals
- assert on Guava collections like Multimap and Multiset
- test Java 8 types like Optional and Stream
- write custom subjects for domain-specific types
- use assertions in Android instrumentation tests
When to choose
- you want fluent, chainable assertions with informative failure output
- your project already uses Guava types
- you prefer Truth's style over AssertJ or Hamcrest
When to avoid
- you want to avoid extra test dependencies and stick with JUnit's built-in asserts
- your team is standardized on AssertJ or Hamcrest
Facets
library · maturity stable
testing testing developer-tools mobile-development jvm cross-platform fluent-assertions unit-testing assertion-framework guava junit android
4 sources
- readme: https://github.com/google/truth · fetched 2026-08-28 · f07db9b6d79c
- homepage: https://truth.dev/ · fetched 2026-08-29 · b7d8d5b91126
- site_page: https://truth.dev/faq · fetched 2026-08-29 · 470ca415a1b5
- site_page: https://truth.dev/api · fetched 2026-08-29 · a72ea1e79474
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/truth | main | 69 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem