Explore
Topics
Collections
Documents
FAQ
GitHub
Explore repos
Explore
Topics
Collections
Documents
FAQ
GitHub
Explore repos
Explore
/
Java
/
truth
google
google/truth
Fluent assertions for Java and Android
View on GitHub
Website / Demo
Copy link
Back to listing
2.8k
stars
277
forks
83
contributors
Java
README.md
View on GitHub
[![Main Site][gh-pages-shield]][gh-pages-link] [![Build Status][ci-shield]][ci-link] [![Maven Release][maven-shield]][maven-link] [![Stackoverflow][stackoverflow-shield]][stackoverflow-link] ## What is Truth? Truth makes your [test assertions] and [failure messages] more readable. [Similar][comparison] to [AssertJ], it [natively supports][known_types] many JDK and [Guava] types, and it is [extensible][extension] to others. Truth is owned and maintained by the [Guava] team. It is used in the majority of the tests in Google’s own codebase. Read more at [the main website](https://truth.dev). <!-- references --> [test assertions]: https://truth.dev/benefits#readable-assertions [failure messages]: https://truth.dev/benefits#readable-messages [comparison]: https://truth.dev/comparison [AssertJ]: https://assertj.github.io/ [known_types]: https://truth.dev/known_types [extension]: https://truth.dev/extension [Guava]: https://github.com/google/guava [gh-pages-shield]: https://img.shields.io/badge/main%20site-truth.dev-ff55ff.png?style=flat [gh-pages-link]: https://truth.dev [ci-shield]: https://github.com/google/truth/workflows/CI/badge.svg?branch=master [ci-link]: https://github.com/google/truth/actions [maven-shield]: https://img.shields.io/maven-central/v/com.google.truth/truth.png [maven-link]: https://central.sonatype.com/artifact/com.google.truth/truth [stackoverflow-shield]: https://img.shields.io/badge/stackoverflow-google‐truth-5555ff.png?style=flat [stackoverflow-link]: https://stackoverflow.com/questions/tagged/google-truth
Live Chat