A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
Go to file
Martin Hořeňovský 0dabd951ba expr is now cast to void in THROWS family of assertions.
This prevents Clang from complaining about unused value in expressions
containing explicit casts used in the THROW assertion macro family.

Example:
`REQUIRE_THROWS_AS(static_cast<bool>(object), std::bad_cast);` would
trigger `-Wunused-value` warning. Now it does not.

Credits to Arto Bendiken, who submitted a PR almost 3 years ago, but his
branch has since died and I was unable to merge it.
2017-01-31 18:02:11 +01:00
.github First draft of issue and PR templates. 2017-01-28 11:42:11 +01:00
docs Improved assertion documentation 2017-01-30 19:42:27 +01:00
include expr is now cast to void in THROWS family of assertions. 2017-01-31 18:02:11 +01:00
projects Added benchmark for the char literals change 2017-01-29 23:23:33 +01:00
scripts Fixed inconsistent and trailing whitespace 2017-01-26 23:13:12 +01:00
single_include v1.6.1 build 2017-01-20 12:49:59 +01:00
.gitattributes Git Attributes, with control for line-endings 2013-10-18 07:53:05 +01:00
.gitignore Removed all manually maintained project files in favour of instructions on how to use CMake to generate them 2017-01-09 17:38:42 +00:00
.travis.yml Enabled CMake dev warnings in travis. 2017-01-15 22:08:12 +01:00
catch-logo-small.png Added logo to readme 2013-03-21 19:12:21 +00:00
catch-logo-tiny.png Added single char version of logo 2017-01-13 18:49:49 +00:00
CMakeLists.txt Returned basic warnings to CMake generated builds 2017-01-31 17:37:27 +01:00
LICENSE_1_0.txt Fixed crlf issue 2013-11-07 13:05:29 +01:00
README.md Direct download link now links to latest release version 2017-01-26 13:12:19 +01:00

catch logo

v1.6.1

Build status (on Travis CI) Build Status

The latest, single header, version can be downloaded directly using this link

What's the Catch?

Catch stands for C++ Automated Test Cases in Headers and is a multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C). It is implemented entirely in a set of header files, but is packaged up as a single header for extra convenience.

How to use it

This documentation comprises these three parts:

More