https://github.com/philsquared/Catch

sort by:
Revision Author Date Message Commit Date
d2d8455 v2.2.2 06 April 2018, 10:11:22 UTC
ab30621 Fix stringifying static array of unsigned chars The fix leaves an open question: should we keep treating refs to static array of chars as strings, or should we instead use `strnlen` to check if it is null-terminated within the buffer Fixes #1238 06 April 2018, 09:43:12 UTC
1ca8f43 Add PredicateMatcher that takes an arbitrary predicate functions Also adds `Predicate` helper function to create `PredicateMatcher`. Because of limitations in type inference it needs to be explicitly typed, like so `Predicate<std::string>([](std::string const& str) { ... })`. It also takes an optional second argument for description of the predicate. It is possible to infer the argument with sufficient TMP, see https://stackoverflow.com/questions/43560492/how-to-extract-lambdas-return-type-and-variadic-parameters-pack-back-from-gener/43561563#43561563 but I don't think that the magic is worth introducing ATM. Closes #1236 04 April 2018, 09:14:19 UTC
dfb83f2 Add stringification methods for CLR objects 03 April 2018, 17:06:16 UTC
319bddd Small fix to generate pc with include path In CMake module both include and include/catch are added includes lookup path. Examples are built with #include "catch.hpp" not #include "catch/catch.hpp". This should be the same with pkg-config. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org> 02 April 2018, 19:38:17 UTC
9314412 Add an early bailout out of benchmark timer calibration Specific platforms (e.g. TDM-GCC) can have terrible timer resolution, and our checking code will then loop for an inordinate amount of time. This change will make it so that the calibration gives up after 3 seconds and just uses the already measured values. This leaves one open question, how to signal that the resolution is terrible and benchmarking should not happen? Fixes #1237 01 April 2018, 20:50:39 UTC
ea1f326 Fix potential for false negative CI results on coverage collection 01 April 2018, 12:36:55 UTC
3641706 Leak less GCC warnings suppressions out of Catch 01 April 2018, 11:57:05 UTC
3b801c4 Modify XML encoder to hex-encode invalid UTF-8 sequences There are still some holes, e.g. we leave surrogate pairs be even though they are not a part of valid UTF-8, but this might be for the better -- WTF-8 does support surrogate pairs inside text. Closes #1207 27 March 2018, 14:49:14 UTC
e11508b Disable PIP's version check on AppVeyor 22 March 2018, 14:19:09 UTC
886d799 Fix clang-tidy 6 diagnostic about virtual call in destructor 21 March 2018, 16:05:15 UTC
8b78087 Fix bug in WithinAbs::match() and add tests for it 21 March 2018, 12:47:12 UTC
6c99b04 Allow VS 2017 failures VS 2017 has an annoying bug, where the result of `__FILE__` substitution is always lower-cased. This breaks approval tests and I am not quite convinced that we should fully normalized paths to accomodate this bug. We need to remember to undo this in the future though. 21 March 2018, 12:41:20 UTC
0a34cc2 v2.2.1 11 March 2018, 11:04:28 UTC
11c89a5 Bring in Clara v1.1.4 This fixes #1214 09 March 2018, 09:37:56 UTC
dc3e7f9 Fix incorrectly clamped return value Fixes #1215 09 March 2018, 09:00:55 UTC
d14b756 v2.2.0 07 March 2018, 10:06:15 UTC
a3d3a63 Don't build `dev-appveyor*` branches on TravisCI 07 March 2018, 09:53:09 UTC
8d47963 Merge pull request #1206 from zemasoft/master Introduce support for DJGPP cross compiler 07 March 2018, 09:47:18 UTC
552589f Merge branch 'master' into master 07 March 2018, 09:37:50 UTC
95c849f Introduce support for DJGPP cross compiler DJGPP cross compiler is targeting DOS which does not support POSIX signals. Probably for the same reason (targeting DOS) this compiler does not support wide characters. 07 March 2018, 09:35:32 UTC
352853e Introduce conditional wchar_t (and std::wstring) support The support is turned on by default but the user might need to be able to turn it off which is now possible by defining CATCH_CONFIG_NO_WCHAR. 07 March 2018, 09:35:31 UTC
b111755 Fixup various spelling errors (#1208) 07 March 2018, 09:08:35 UTC
d38f782 Ensure Catch2ConfigVersion.cmake is installed properly The old version would lead to error when Catch was installed as a subproject. The file would be written to the subproject's build directory and then would not be installed properly. 07 March 2018, 08:42:58 UTC
dc8a8e6 Speed up AppVeyor build times * Examples are no longer built for all images * Coverage is no longer collected from every build * The number of configurations is reduced 06 March 2018, 21:46:49 UTC
9d1858b Simplify internal configuration of POSIX signals 06 March 2018, 16:58:37 UTC
1d1f8dc Stop installing lcov in builds without COVERAGE=1 06 March 2018, 14:38:22 UTC
1466686 Speed up TravisCI build * Examples are no longer built on all travis images * Coverage is no longer collected from all travis images * Valgrind is no longer used with all travis images This should greatly reduce the amount of compiling, downloading binaries and general work the common images do. 06 March 2018, 14:24:12 UTC
93db01c Fix C++14 toggle for OSX build 05 March 2018, 14:09:25 UTC
2e285b9 Use char const * const * for Session::run Needed to embed newer version of Clara Closes #1178 Closes #1031 04 March 2018, 16:58:27 UTC
d2ddb99 Cleanup for performance reasons * Eliminated some copies * Made makeTestCase fit into 4 arguments -- avoids spills on Win64 * Made string literals into StringRef literals 02 March 2018, 15:24:35 UTC
865d5f5 Fix 'defined but not used' warning The warning occurred when !CATCH_CONFIG_WINDOWS_SEH && !CATCH_CONFIG_POSIX_SIGNALS. 01 March 2018, 12:37:23 UTC
05cd057 Provide a public method to get StringRef's underlying pointer This allows reducing the amount of friends needed for its interface and some extra tricks later. The bad part is that the pointer can become invalidated via calls to other StringRef's public methods, but c'est la vie. 28 February 2018, 21:49:00 UTC
950ccf4 StringRef appends itself to std::string efficiently 28 February 2018, 15:02:25 UTC
cf4b7ee Document CATCH_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS macro Also fix how it can be disabled. 25 February 2018, 20:22:38 UTC
7b6e49d Simplify logic selecting between signal handling/SEH/nothing It was a bit of a mess previously 23 February 2018, 13:56:07 UTC
0c5df42 Fix how windows.h is included in our files. To prevent bugs with stitching system headers inside Catch, the proxy header is responsible for guarding against inclusion on Linux, rather than the includers. Might be related to #1197 23 February 2018, 11:40:12 UTC
4e57661 StringRef will not take ownership when writing itself to stream This also fixes some tests that were previously failing unnoticed - WTF? 17 February 2018, 19:41:50 UTC
5a8f9c8 Fix doubled line in baselines 16 February 2018, 21:10:39 UTC
f988b4e Covered more translation possibilities 15 February 2018, 18:58:49 UTC
c8d765a Cleanup some tests 15 February 2018, 15:06:35 UTC
da783ab Move fallback conversion after enum-check 15 February 2018, 15:06:35 UTC
c0267e5 Add test for overriding the fallback stringifier 15 February 2018, 15:06:35 UTC
bb84f07 Removed unnecessary use of ostringstream from catch_enforce.h 15 February 2018, 13:59:02 UTC
e84768f Add SpECTRE project to list of users. 14 February 2018, 07:31:33 UTC
31673ee Document CATCH_CONFIG_DEFAULT_REPORTER macro 11 February 2018, 17:10:28 UTC
34d7a33 Add a way to change fallback stringifier This allows reuse of projects existing stringification machinery Closes #1024 11 February 2018, 15:31:12 UTC
082c3b8 Fix typos in documentation 10 February 2018, 21:16:32 UTC
ef2e112 Disable POSIX signals for Emscripten Related to #1114 10 February 2018, 19:42:08 UTC
a90305f Add another known bug to limitations.md Related to #1183 10 February 2018, 12:51:33 UTC
543c9d3 Set patch coverage check to target 80% 09 February 2018, 19:09:55 UTC
ca8470f https://github.com/catchorg/Catch2/issues/1175 - don't list hidden tests by default 09 February 2018, 18:55:40 UTC
355b3f9 Add option to warn when no tests ran Closes #1158 09 February 2018, 17:49:36 UTC
7cbd0b5 v2.1.2 09 February 2018, 16:10:27 UTC
2f15ccd Passthrough error code from coverage helper 09 February 2018, 15:54:10 UTC
8f3fc15 Update version of Clara Fixes #1165 09 February 2018, 15:50:19 UTC
e13d9ca Keep .py files with LF endings so they can be executed from bash 09 February 2018, 15:49:35 UTC
414e2fa Make embedClara.py executable 09 February 2018, 15:49:21 UTC
b5ef68b Force MSVC to use utf-8 08 February 2018, 14:44:33 UTC
681f5da Update approval tests 08 February 2018, 14:00:56 UTC
3b6fda3 Add tests for StringRef::numberOfCharacters 08 February 2018, 12:10:12 UTC
1b2fa60 Remove superfluous comment 08 February 2018, 12:09:02 UTC
39bfc6e Export Catch as a CMake package and 'linkable' target Create a namespaced Catch2::Catch target that is 'linkable' through `target_link_libraries()` and export it so it is findable through `find_package()`. `find_package()` will find versions with the same major number and with minor number >= requested. This makes catch a lot easier to use in CMake-based projects. Whether it is found using `find_package` or included in the client project as a subdirectory, the client can include the catch headers per-target with `target_include_directories(target PRIVATE Catch2::Catch). Example usage: cmake_minimum_required(VERSION 3.1) # include Catch2 as subdirectory or installed package # add_subdirectory(Catch2) find_package(Catch2 VERSION 2.1.0 REQUIRED) add_executable(tests tests/catch_main.cpp) target_link_libraries(tests PRIVATE Catch2::Catch) 08 February 2018, 11:18:42 UTC
ba6d33f Enable -Wpedantic, fix unconditional use of C++14 extension 05 February 2018, 09:04:59 UTC
4be81d3 Remove unnecessary semicolons 05 February 2018, 09:03:51 UTC
5201e92 Redirect std::uncaught_exception to Catch::uncaught_exception This means that only one place needs to work with warnings from the deprecation of `std::uncaught_exception()` in C++17. Closes #1162. 02 February 2018, 14:36:15 UTC
5e48486 Add Catch::is_range to documentation 01 February 2018, 19:29:49 UTC
5713381 Fixes for cygwin 01 February 2018, 16:14:20 UTC
1ab6be3 Add a BrightYellow colour, also use it for reconstructed exprs Closes #979 01 February 2018, 14:58:33 UTC
126850e Prefer operator<< to range-based stringification Fixes #1172 01 February 2018, 13:07:23 UTC
5e8df1c Update opensource-users.md 28 January 2018, 20:05:24 UTC
44dbda9 Add CATCH_VERSION_* defines for external use I wonder how much use they will actually see, but their cost is fairly minor. Closes #1131 26 January 2018, 19:56:14 UTC
ca2455e Fixed NoAssertions warning 26 January 2018, 16:52:28 UTC
42213d4 Keep LICENCE.txt with LF as line endings for easy hashing 26 January 2018, 15:45:32 UTC
62dae59 v2.1.1 26 January 2018, 15:06:07 UTC
9a57054 Add % to codecov coverage decrease threshold Maybe now it will work? 26 January 2018, 14:45:31 UTC
a1aefce Guard against CLR exceptions when translating exceptions Partially fixes #1138, need to decide what to do about structured exceptions. 24 January 2018, 11:11:29 UTC
d595990 Added Catch::clara namespace to doc for adding Opt - Thanks to sakamoto-poteko in #1159 for point out its ommission 23 January 2018, 07:44:09 UTC
31e6499 Embed Clara v1.1.1 22 January 2018, 15:08:28 UTC
b0f4f16 Namespace Catch CMake options 18 January 2018, 22:20:26 UTC
1e3ddbb Specify VERSION in modern CMake 18 January 2018, 22:20:26 UTC
15ad95c Make generateSingleHeader compatible with Python 2.7 18 January 2018, 15:28:19 UTC
00a10d5 Return fixed codecov settings 18 January 2018, 12:51:32 UTC
0d687a1 Change CMake project name to 'Catch2' 18 January 2018, 12:13:39 UTC
bdf431c Install documentation 18 January 2018, 12:13:39 UTC
a035998 Use CTest to control test suite via BUILD_TESTING 18 January 2018, 12:13:39 UTC
8d4074a Use `GNUInstallDirs` module * `GNUInstallDirs` is a standardised way to change paths, which makes systems integration easier and allows for a more consistent user experience. 18 January 2018, 12:13:39 UTC
f0f40a0 Ensure that the single header is kept with LFs 18 January 2018, 11:44:59 UTC
fa4fd7f Modify codecov.yml again 15 January 2018, 12:59:48 UTC
07c84ad Allow disabling -Werror in CMake Related to #1152 14 January 2018, 17:14:11 UTC
8d854c6 Provide useful and unambigous stringification for static arrays 14 January 2018, 17:06:43 UTC
f0909df Add yet another expansion of INF macro Closes #1151 14 January 2018, 16:04:36 UTC
de36b2a Fix compilation for types where relops don't return bool Closes #1147 12 January 2018, 14:49:56 UTC
9700ee4 Update CTest autodiscovery documentation 12 January 2018, 11:28:14 UTC
bbda8cd Update reporter docs with their new location 12 January 2018, 11:20:52 UTC
4575594 Comment why the return code is clamped 12 January 2018, 10:49:48 UTC
c053dca Update path to vcpkg's portfile 12 January 2018, 10:09:46 UTC
3d7104c Catch ``catch_discover_tests`` Copied from [Dynamic Catch test discovery in CMake](https://gist.github.com/garethsb/a01ed0dbd4977d439c16200640549935), which was inspired by [Dynamic Google Test Discovery in CMake 3.10](https://blog.kitware.com/dynamic-google-test-discovery-in-cmake-3-10/). Original source code: - Adapted by [Gareth Sylvester-Bradley](https://github.com/garethsb) from [GoogleTest ``gtest_discover_tests``](https://gitlab.kitware.com/cmake/cmake/merge_requests/1056). - BSD 3-clause "New" or "Revised" License. - Copyright 2000-2017 Kitware, Inc. and Contributors. All rights reserved. 11 January 2018, 20:17:12 UTC
6441c20 Modify codecov behaviour 11 January 2018, 20:13:52 UTC
5774c4f Update release process with the need to release reporters 11 January 2018, 20:06:35 UTC
back to top