https://github.com/philsquared/Catch

sort by:
Revision Author Date Message Commit Date
5b99c56 Don't use std version of nextafter nextafter is C++11. std version is not available with either uClibc++ or uClibc-ng. 01 September 2019, 20:38:03 UTC
ce42deb Add Android's log library to Catch2's CMake interface 10 August 2019, 18:51:15 UTC
46a7007 Use __android_log_write instead of __android_log_print `print` version of the logging functions supports `printf`-like formatting, which we do not use and given our current debug print internals, will never use. This should be slightly more efficient and expresses the intent better. 10 August 2019, 12:51:38 UTC
378cc1a Rename template parameter names to avoid name conflict on Solaris. Closes #1722 10 August 2019, 08:55:17 UTC
e2d863b Actually run the random generator tests 09 August 2019, 09:21:05 UTC
ebe6a07 Remove the new tests from approvals They lead to stringification of file (which is ok) and file line (not ok) to the approvals, which makes them exceedingly brittle and not worth approval testing. Instead we just run them as part of the base test run. 09 August 2019, 09:13:28 UTC
edcfd7f Add missed item to v2.9.2 release notes 09 August 2019, 08:57:59 UTC
738818a Add a test for the internals 09 August 2019, 08:50:53 UTC
2c869e1 v2.9.2 08 August 2019, 12:05:24 UTC
0ab11aa (Hopefully) Fix Obj-C++ compilation of matchers Thanks to bdb for the patch, related to #1661 07 August 2019, 18:35:27 UTC
7a6af7b Merge pull request #1717 from ax3l/fix-storageClassFirst static constexpr: storage class first 07 August 2019, 07:23:47 UTC
fa096b2 Merge pull request #1715 from sfranzen/fix-compact-reporter Fix infinite loop in compact reporter printer 07 August 2019, 07:12:38 UTC
820b1f1 static constexpr: storage class first Seen with PGI compiler for `static constexpr`: ``` warning: storage class is not first ``` 07 August 2019, 00:17:16 UTC
6070745 Improve reporting of unmatched filters (#1684) This PR ultimately does 3 things * Separately tracks matched tests per each filter part (that is, a set of filters separated by an OR (`,`)), which allows Catch2 to report each of the alternative filters that don't match any tests. * Fixes `-w NoTests` to return non-zero in the process * Adds tests for `-w NoTests`. 06 August 2019, 18:51:19 UTC
3d9e7db Fix infinite loop in compact reporter printer Also simplify some variables with auto deduction. 06 August 2019, 18:19:42 UTC
cf55cfd Tiny speedup when listing tags Noticed that the code was originally concatenating strings just to then append the result to another string. Now it does not create temporaries and also preallocates the string buffer. 05 August 2019, 17:12:29 UTC
3701c2e Small cleanup of self tests 04 August 2019, 11:50:25 UTC
7dc7d77 Add a test for Catch version output 03 August 2019, 18:16:46 UTC
06bc20c Improve handling of newlines in release scripts Under WSL, Python in text mode will translate `\n` into `\r\n`, even though other tools and utilities use `\n` (because WSL is basically Linux). This leads to the update scripts leaving the files with Windows newlines even though git and similar expect them to have Linux newlines. By instead handling files in binary mode, we can keep the original newlines. This commits switches parts of the update process to binary mode, but not all because some of the will require a lot of work to fix. 03 August 2019, 17:59:35 UTC
7a4beed Make release script update version placeholders in docs 03 August 2019, 08:44:57 UTC
67b4ada Add 'Introduced in Catch 2.3.0.' text 02 August 2019, 17:18:47 UTC
119569a Add 'Introduced in Catch 2.4.0.' text 02 August 2019, 17:18:47 UTC
ab71389 Add docs for AND_GIVEN macro - see #1360 02 August 2019, 17:18:47 UTC
69fc94d Add 'Introduced in Catch 2.4.1.' text 02 August 2019, 17:18:47 UTC
49cd7c9 Add 'Introduced in Catch 2.4.2.' text 02 August 2019, 17:18:47 UTC
e998d15 Add 'Introduced in Catch 2.5.0.' text 02 August 2019, 17:18:47 UTC
42a5903 Add 'Introduced in Catch 2.6.0.' text 02 August 2019, 17:18:47 UTC
c071f07 Add 'Introduced in Catch 2.7.0.' note 02 August 2019, 17:18:47 UTC
53776a9 Add 'Introduced in Catch 2.7.1.' note 02 August 2019, 17:18:47 UTC
4511dc0 Add 'Introduced in Catch 2.8.0.' text 02 August 2019, 17:18:47 UTC
e7c3bdb Add 'Introduced in Catch 2.8.0.' text 02 August 2019, 17:18:47 UTC
9aab958 Add section headers, so I can later say when features were introduced 02 August 2019, 17:18:47 UTC
8cd58f7 Add missing struct Template_Fixture_2 so that the example compiles. Code copied from projects/SelfTest/UsageTests/Class.tests.cpp 02 August 2019, 17:18:47 UTC
d5a69cd Add 'Introduced in Catch 2.9.0.' text 02 August 2019, 17:18:47 UTC
1d13d88 Helper script to create "Introduced in ..." text - see #1667 02 August 2019, 17:18:47 UTC
de0674c Add a template for creating new documentation page Related to #1695 02 August 2019, 11:17:22 UTC
3d7282c Add a section on documentation to contributing.md Related to #1695 02 August 2019, 08:58:51 UTC
e5c0e33 Add Android implementation of writeToDebugConsole that prints to Logcat (#1710) 31 July 2019, 21:12:34 UTC
dc8c8e9 Use an up to date conan package version again Last time it was fixed to a specific version because the `conan` and the `conan-package-tools` package that `pip install` would gather were not compatible, let's hope it won't happen again. 31 July 2019, 13:59:16 UTC
ba91933 Add autoconfiguration for RTX Closes #1693 30 July 2019, 09:28:28 UTC
7b70b11 Add PopHead to Open Source projects using Catch 30 July 2019, 07:37:05 UTC
ab80277 Improve the REQUIRE_THROWS_MATCHES documentation a bit 29 July 2019, 18:39:02 UTC
7e7ab0e Fix xml reporter crashing when a benchmark failed. 29 July 2019, 13:30:33 UTC
425957d Update vector matcher documentation As it turns out, there were 2 undocumented vector matchers. I also improved the documentation of them all. Closes #1699 27 July 2019, 16:41:42 UTC
d017f6d Document CATCH_CONFIG_CPP17_BYTE macro Leftover from #1686 26 July 2019, 19:43:46 UTC
91244d3 Document CATCH_CONFIG_CPP17_OPTIONAL macro 26 July 2019, 19:42:54 UTC
62b3f6c Merge pull request #1698 from sfranzen/fix-#1634 Fix CTest command issue with square brackets 22 July 2019, 11:15:35 UTC
e7c26f0 Fix non-default-constructible type lists used in TEMPLATE_LIST_TEST_CASE (#1697) * Fix non-default-constructible type lists used in TEMPLATE_LIST_TEST_CASE std::tuple is not default constructible when the first type is not default-constuctible. Therefore it can not be instantiated. to circumvent this, we have to use std::declval in the unevaluate decltype context. 22 July 2019, 10:56:33 UTC
a22b7df Merge pull request #1700 from claremacrae/patch-3 Fix typo in 2.7.1 release notes 22 July 2019, 10:13:29 UTC
032068b Fix typo in 2.7.1 release notes GENERATE_VAR -> GENERATE_REF 21 July 2019, 21:04:50 UTC
2aed623 Fix CTest command issue with square brackets 21 July 2019, 14:29:46 UTC
fb74bb1 Fix coverage report merging For some time now (I'd guess almost a year :shrug:), the coverage merging on Windows has been failing, because the reports have been generated in a different folder than expected. Our merge script did not report failure because it was not checking the returned error code from OpenCppCoverage, and for some reason, the `codecov` tool happily returned 0 even though it did not find the file it was supposed to upload... The former is also fixed by this commit. 20 July 2019, 19:12:17 UTC
0b42ada Coverage helper now passes-on test return value This allows #1684 to proceed forward. 20 July 2019, 19:05:31 UTC
c424ca4 Revert "Do not resolve symbolic path when sanitizing filepath during approvals" This reverts commit 52f3abadbb2da954597cda588b07c5e71a49f7e1. Opens #1691 19 July 2019, 16:16:21 UTC
52f3aba Do not resolve symbolic path when sanitizing filepath during approvals Fixes #1691 18 July 2019, 14:33:57 UTC
53281b4 Prevent compilation of generators that use bool in dangerous manner Closes #1692 18 July 2019, 09:54:18 UTC
03ffc10 Add a notice that benchmarking supports needs opt-in 14 July 2019, 13:49:17 UTC
87739ad Add `std::byte` stringification support (#1686) * Add `std::byte` support 1. Add byte detection in Catch config 2. Add a `std::byte`specialisation for Catch2::Detail::StringMaker 13 July 2019, 12:47:56 UTC
0c27554 Update Contents in docs #1667 06 July 2019, 15:25:55 UTC
11488e6 Use _WIN32 macro for detecting MSVC Windows Previously we used `WIN32`, which sometimes does exist, but according to https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019 `_WIN32` is the one that is actually provided by the compiler. Closes #1676. 06 July 2019, 14:55:10 UTC
820271b Remove the weird backronym from readme 02 July 2019, 18:43:37 UTC
56d4510 Default the SelfTest project to C++11 Unlike the previous approach, this will still obey `-DCMAKE_CXX_STANDARD=X` properly. 02 July 2019, 18:42:14 UTC
c0d3a2e Merge pull request #1672 from sommd/master Fix ChunkGenerator with chunk-size 0 01 July 2019, 16:07:37 UTC
2c3018a Merge pull request #1673 from sfranzen/fix-sections Fix TrackerBase::close children completion check 30 June 2019, 07:17:01 UTC
9a6551b Add integration test for the children completion check fix 29 June 2019, 22:00:41 UTC
800f1b1 Fix TrackerBase::close children completion check Now verifies that all children have completed, instead of only the last. 29 June 2019, 16:02:28 UTC
9cf5897 Fix ChunkGenerator with chunk-size 0 Fixes #1671 29 June 2019, 13:48:30 UTC
6f32c67 Adding to documentation for --order and --rng-seed 21 June 2019, 13:17:55 UTC
7eea3ab Actually fix the CMake platform-independence problem 17 June 2019, 17:41:17 UTC
80af9ca Rollback ctest labels in CatchAddTests.cmake Parsing --list-tests is broken, as Catch automatically line wraps the line when it gets too long, stripping any whitespace in the process. This means that it's impossible to reproduce the exact name of the test if the test's name is long enough to line-wrap. Furthermore, overwriting the LABELS property with the discovered labels breaks users who manually added custom ctest labels. Rolling back to using --list-test-names-only for now, as it does not wrap lines even on very long test names. We may be able parse the output of --list-tags to produce the ctest labels. However, the straightforward way of doing this is to use CMake's get_property(TEST ...) and set_property(TEST ... APPEND ...), which don't work if the test name has spaces or other special characters. We would need to mangle the test name to a valid CMake identifier to do it that way. 17 June 2019, 17:17:32 UTC
33286fd Fix bug with making arch-independent CMake config file Closes #1660 17 June 2019, 17:08:16 UTC
2f631bb v2.9.1 17 June 2019, 10:02:14 UTC
25cc09d Fix benchmarking in stand-alone files 17 June 2019, 09:58:40 UTC
f9dce28 v2.9.0 16 June 2019, 08:42:59 UTC
b87caaf Remove explicit setting of CXX_STANDARD for SelfTest target - The current setup tries to detect USE_CPP14/USE_CPP17 and sets the CXX_STANDARD property for the SelfTest target. This is not ideal, since CMAKE_CXX_STANDARD can be provided by the toolchain file or as command line option and should be used by the library internally correctly. Hence, the whole set of the relevant lines from `projects/CMakeLists.txt` have been removed. - The above can also cause subtle issues where the user is expecting the tests to compile with C++17 after setting CMAKE_CXX_STANDARD and then getting results of compilation with C++11 as USE_CPP17 has not been set. - The current build matrix used the above code to run the tests. So, even though the it should not required anymore to build Catch2, it was still required to send correct options to build matrix. In that respect, .travis.yml has been modified to send correct options to the build command in the new setup. 15 June 2019, 18:33:28 UTC
bbbd5c4 Added null-ptr check in Colour::use() 15 June 2019, 16:06:59 UTC
f41051f test approvals for TEMPLATE_LIST_TEST_CASE 15 June 2019, 13:40:39 UTC
e90d5a8 docs for TEMPLATE_LIST_TEST_CASE 15 June 2019, 13:40:39 UTC
dbc1295 tests for TEMPLATE_LIST_TEST_CASE 15 June 2019, 13:40:39 UTC
f2cfc2b TEMPLATE_LIST_TEST_CASE implementation Closes #1627 15 June 2019, 13:40:39 UTC
c365ac3 Standardize and document the parallel processing toggle 15 June 2019, 10:50:36 UTC
e640c38 Move the async-using parts of benchmarking into a .cpp file This keeps it out of the main include path when benchmarking is enabled, somewhat reducing the compilation-time penalty. Also moved some other functions into the .cpp file, especially helpers that could be given internal linkage, and concretized some iterator-templated code that only ever used `std::vector<double>::iterator`. 15 June 2019, 09:43:25 UTC
b468d7c Link benchmarking docs from the doc main page 15 June 2019, 07:23:00 UTC
7142d5a Show bound when stringifying the WithinULP matcher Closes #1581 15 June 2019, 05:12:27 UTC
1967fea Introduce stubs for throwing specific exception types This allows us to move <stdexcept> out of the common path, and replace it with just <exception>. The difference between these two headers is ~13k lines after preprocessing on libstdc++ (16k vs 3k) and ~17k lines for MS's STL(33k vs 16k). Note that this is only beneficial if no other stdlib header we use includes <stdexcept>. AFAIK this is true for the newest MS's STL, but I have no idea of the applicability for libstdc++ and libc++. 14 June 2019, 17:13:50 UTC
f0b7b0c Add a FUNDING file 07 June 2019, 17:15:35 UTC
4b12525 Merge pull request #1616 from fodinabor/integrate_nonius Integrate nonius to provide more advanced benchmarking 07 June 2019, 05:01:47 UTC
10067a4 Add an extra test for benchmarking macros Also updated baselines 06 June 2019, 19:29:25 UTC
e340ab8 Various improvements to the benchmarking support * Units from <ratio> are no longer redeclared in our own namespace * The default clock is `steady_clock`, not `high_resolution_clock`, because, as HH says "high_resolution_clock is useless. If you want measure the passing of time, use steady_clock. If you want user friendly time, use system_clock". * Benchmarking support is opt-in, not opt-out, to avoid the large (~10%) compile time penalty. * Benchmarking-related options in CLI are always present, to decrease the amount of code that is only compiled conditionally and making the whole shebang more maintainble. 06 June 2019, 19:28:56 UTC
ce2560c Integrate Nonius benchmark into Catch2 Changes done to Nonius: * Moved things into "Catch::Benchmark" namespace * Benchmarks were integrated with `TEST_CASE`/`SECTION`/`GENERATE` macros * Removed Nonius's parameters for benchmarks, Generators should be used instead * Added relevant methods to the reporter interface (default-implemented, to avoid breaking existing 3rd party reporters) * Async processing is guarded with `_REENTRANT` macro for GCC/Clang, used by default on MSVC * Added a macro `CATCH_CONFIG_DISABLE_BENCHMARKING` that removes all traces of benchmarking from Catch 06 June 2019, 17:33:37 UTC
00347f1 v2.8.0 26 May 2019, 20:47:00 UTC
a5a2d08 Remove commented out code 26 May 2019, 19:19:55 UTC
97602b2 Remove obsolete file with wrong advice 25 May 2019, 19:20:37 UTC
e28e162 Merge pull request #1638 from janisozaur/patch-1 Prevent building in source dir 25 May 2019, 19:15:58 UTC
90378f4 Have conan test-build the package in a separate subdirectory 25 May 2019, 17:58:49 UTC
84f8e80 Nttp support tests approvals 23 May 2019, 19:03:47 UTC
732e4b0 docs for signature based parametrised test cases 23 May 2019, 19:03:47 UTC
0c43f98 Nttp support Closes #1531 23 May 2019, 19:03:47 UTC
bd703dd Merge pull request #1611 from cincodenada/unscoped-disabled-prefixed Add UNSCOPED_INFO to prefix/disabled sections 23 May 2019, 12:19:22 UTC
9960278 Fix error message when unmatched quotes are encountered by CAPTURE Thanks to @ledvinap for noticing 23 May 2019, 11:54:51 UTC
back to top