Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/google/truth

Fluent assertions for Java and Android
https://github.com/google/truth

assertion-framework java junit test-framework testing-library truth unit-testing

Last synced: about 1 month ago
JSON representation

Fluent assertions for Java and Android

Lists

README

        

[![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).

[test assertions]: https://truth.dev/benefits#readable-assertions
[failure messages]: https://truth.dev/benefits#readable-messages
[comparison]: https://truth.dev/comparison
[AssertJ]: http://joel-costigliola.github.io/assertj/
[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://search.maven.org/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