/truth

Assertion/Proposition framework for Java unit tests

Primary LanguageJavaApache License 2.0Apache-2.0

Truth

We've made failure a strategy

Main Website: google.github.io/truth   Continuous Integration: [Build Status] (https://travis-ci.org/google/truth)
Latest Release: 0.28   Latest Artifact: org.junit.contrib:truth:jar:0.28

What is Truth?

Truth is an assertion/proposition framework appropriate for testing, inspired by FEST, and driven by some extensibility needs, written nearly entirely by Google employees in their spare time or contributing in their capacity as Java core librarians.

Truth can be used in place of JUnit's assertions, FEST, or Hamcrest's matchers, or it can be used alongside where other approaches seem more suitable.

The full documentation and website for Truth is available at http://google.github.io/truth

License

Truth is licensed under the open-source Apache 2.0 license.

Acknowledgements

Thanks to Github and Travis-CI for having a strong commitment to open-source, and providing us with tools so we can provide others with code. And thanks to Google for Guava, for taking on the Truth project and making it part of their core-libraries effort, and for encouraging us to try to solve problems in better ways and share that with the world.

Also thanks to the authors of JUnit, TestNG, Hamcrest, FEST, and others for creating testing tools that let us write high-quality code, for inspiring this work and for moving the ball forward in the field of automated software testing. This project works with, works alongside, and sometimes works in competition with the above tools, but owes a debt that everyone owes to those gone before. They paved the way, and we hope this contribution is helpful to the field.