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: 3 days ago
JSON representation
Fluent assertions for Java and Android
- Host: GitHub
- URL: https://github.com/google/truth
- Owner: google
- License: apache-2.0
- Created: 2011-06-22T18:55:12.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-10-28T18:37:34.000Z (about 1 month ago)
- Last Synced: 2024-10-29T15:04:12.520Z (about 1 month ago)
- Topics: assertion-framework, java, junit, test-framework, testing-library, truth, unit-testing
- Language: Java
- Homepage: https://truth.dev/
- Size: 35 MB
- Stars: 2,728
- Watchers: 90
- Forks: 260
- Open Issues: 75
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-testing - truth
- awesome-harmony - Truth - Java 单元测试的断言/命题框架 (库 / 测试)
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