https://github.com/philsquared/Catch

sort by:
Revision Author Date Message Commit Date
65cc7fd v3.2.0 16 November 2022, 19:05:48 UTC
c276b53 Fix typo in docs/release-notes.md 16 November 2022, 15:06:29 UTC
8beb74d Add repeatability guarantees to faq.md 16 November 2022, 10:21:00 UTC
e932bcf silence clang's `-Wcomma` 14 November 2022, 12:06:52 UTC
6aa56c7 Mention BUILD.bazel in contributing docs for CATCH_CONFIG* 12 November 2022, 21:08:23 UTC
1cd86c0 meson: update minimum version include_directories of type string began being supported in meson 0.50.0. New warning with meson 0.64 12 November 2022, 13:32:01 UTC
b980d40 Make MatcherGenericBase copy constructor take const parameter. 12 November 2022, 11:22:35 UTC
41990e0 Fix Bazel build (#2563) Also adds a CI job for Bazel build to avoid future breakage. 11 November 2022, 15:54:22 UTC
b65c0e2 Make ScopedMessage in INFO logging macro const If users have const correctness checks enabled then this would flagged forcing users to wrap the INFO macro themselves or forego using it altogether. 10 November 2022, 17:56:20 UTC
6e77e16 Remove unused StringRef argument from MatchExpr Apart from cleaning up the code, this change also improves the compilation time of `UsageTests/Matchers.tests.cpp` by about 2%. 10 November 2022, 14:25:51 UTC
943c6e3 Add version field to the XML reporter output We start at version 2, with version 1 being taken up by the output from Catch2 v2. 10 November 2022, 11:04:51 UTC
066cc51 Document adding new CATCH_CONFIG options to contributing.md 09 November 2022, 15:33:47 UTC
b7f4a2e Add support for PlayStation platforms (#2562) * Add new `CATCH_CONFIG` option for using `std::getenv`, because PS does not support env vars * Add PS to platforms that have disabled posix signals. * Small workaround for PS toolchain bug that prevents it from compiling `std::set` with lambda based comparator. 09 November 2022, 13:47:55 UTC
f8006aa More cleanups for src/CMakeLists.txt * Sort source file lists * Better source_group for cleanup in IDEs * More uniform source lists 09 November 2022, 12:12:42 UTC
fdea5a5 Improve the .clang-format file a bit * add include sorting and grouping * allow some short blocks to be on a single line 07 November 2022, 22:14:29 UTC
297a175 Cleanup the helper scripts * Remove from __future__ import print_function, because we no longer support Python2. * Clean out unused parts of tools/scripts/scriptCommon.py * Move appveyorMergeCoverageScript to Python3 * Update user reporting in *release scripts * Cleanup module imports 06 November 2022, 20:23:16 UTC
d1ef461 Update basic cost estimates for approvals/benchmarks 06 November 2022, 20:23:03 UTC
0c75caf Don't write ApprovalTests' temporary files into the source tree This has two effects: 1) This significantly improves the performance of ApprovalTests run in WSL, because running the massively multi-reporter test would cause lots of small and parallel writes across the WSL-Windows FS boundary, completely mudering performance. 2) ApprovalTests can be run from multiple build dirs in parallel, as long as they do not fail. However, if they do fail, the multiple runs will still step on each other toes when writing the unapproved files for user. 05 November 2022, 23:11:38 UTC
3b139ae Decomposer checks for 0 when assuming an int arg was 0 literal 05 November 2022, 19:43:52 UTC
5f9d4ef Move throwing test failure exceptions into a helper 04 November 2022, 23:22:45 UTC
ec59cd8 Support decomposing types that only compare with literal 0 This is primarily done to support new `std::*_ordering` types, but the refactoring also supports any other type with this property. The compilation overhead is surprisingly low. Testing it with clang on a Linux machine, compiling our SelfTest project takes only 2-3% longer with these changes than it takes otherwise. Closes #2555 04 November 2022, 18:24:44 UTC
d7f8c36 Add traits for checking whether types are comparable 04 November 2022, 18:24:42 UTC
b3dbd83 Add test for comparing pointers to NULL with != 04 November 2022, 18:24:39 UTC
0a1b0ae Meson build fixes * Add missing files to `tests/meson.build` * Rename meson build workflows to be more easily identifiable 04 November 2022, 18:24:36 UTC
272bed0 Set CMAKE_CXX_STANDARD_REQUIRED=ON in Github Action builds 29 October 2022, 19:05:02 UTC
82cec69 Don't set C++ standard in CMakeLists for tests 29 October 2022, 19:04:58 UTC
b56c474 Update comparing-floating-point-numbers.md 29 October 2022, 10:42:45 UTC
12b4390 Fix license rebase error in test helpers 28 October 2022, 12:39:56 UTC
3b40cf1 Split out parseTestSpec into test-only helpers 28 October 2022, 11:27:46 UTC
223d8d6 Merge pull request #2557 from ltoenning/fix/license_file_ref Fix references to license file 28 October 2022, 11:04:29 UTC
f1084fb Fix references to license file The license file was renamed with 6a502cc2f5fedd59b3495b58708f0d6d987ed9e1 28 October 2022, 09:30:15 UTC
d41da10 Change reporters to report filters in round-trippable format 27 October 2022, 18:46:59 UTC
d2294ad Add test for round-tripping serialization of unmatched test specs 27 October 2022, 17:11:20 UTC
e19ed22 Provide round-tripping serialization for TestSpec 27 October 2022, 16:23:59 UTC
c6dfeb5 Split tests for TestSpec into its own file They also got slapped with the `[approvals]` tag in the process, because we have too many approval tests and want less of them, and these particular tests don't bring much value. Related to #2090 26 October 2022, 19:03:56 UTC
17fac85 Add test checking that reporters report filters 26 October 2022, 09:26:10 UTC
ffa1520 Report used filters in the SonarQube reporter 25 October 2022, 22:05:00 UTC
0ce8c25 Report used filters in the TAP reporter 25 October 2022, 22:04:49 UTC
6185d0c Use console reporter's totals summary for compact reporter This changes the compact reporter's summary of test run totals to use the same format as the console reporter. This means that while output is no longer on a single line (two instead), it now includes totals for `failedButOk` test cases and assertions, which were previously missing. 25 October 2022, 18:02:26 UTC
8ce92d2 CatchMiscFunctions.cmake: Use PRIVATE for target_compile_options (#2553) With the changes to how `-ffile-prefix-map` is detected, Catch2 started propagating the flag to its dependents, which isn't the desired behaviour, the normalization should only apply to Catch2's impl. 24 October 2022, 16:26:40 UTC
a43f679 Refactor parsing of shard index/count in cmdline handling This worsens the message for negative numbers a bit, but simplifies the code enough that this is still a win. 22 October 2022, 22:10:05 UTC
f1361ef Refactor how the RNG seed is parsed when handling cmdline 22 October 2022, 20:18:30 UTC
d1e7544 Simplify handling of environment in Bazel's support 22 October 2022, 20:18:27 UTC
3fed230 Add Detail::getEnv wrapper that compiles under UWP Under UWP it will always return nullptr, so UWP will essentially behave as if the environment was just empty. 22 October 2022, 20:18:24 UTC
2d0dcc3 Add Bazel support to the documentation 21 October 2022, 08:53:55 UTC
80d58a7 Add support for Bazel's sharding env variables Closes #2491 21 October 2022, 08:53:53 UTC
d7341b5 Add parseUInt utility function There is an increasing number of places where Catch2 wants to parse strings into numbers, but being stuck in C++14 world, we do not have good stdlib facilities to do this (`strtoul` and `stoul` are both bad). 21 October 2022, 08:53:50 UTC
38d9260 Tiny fix for testBazelReporter.py 20 October 2022, 19:34:35 UTC
9d08689 Add support for Bazel's TESTBRIDGE_TEST_ONLY env var Closes #2490 20 October 2022, 19:34:32 UTC
afc017e Rename provideBazelReporterOutput -> enableBazelEnvSupport The new name better reflects that we are adding support for more Bazel environment variables. 20 October 2022, 19:34:27 UTC
fb68bb0 Fix microbenchmark example in the main readme.md 20 October 2022, 19:34:25 UTC
77f7c01 Fix fibonacci impl in benchmark tests The previous implementation was always 1 number ahead. Fixing this is not important at all, but it was bugging me. 18 October 2022, 08:44:18 UTC
be060cd Update README.md * Add usage examples to the introduction * Mention that v3 has been released 17 October 2022, 19:47:22 UTC
5df88da 3.1.1 17 October 2022, 17:57:58 UTC
5cd8938 Update explanation of REQUIRE_FALSE in docs/assertions.md 17 October 2022, 13:13:00 UTC
6a422ba Trim superfluous whitespace in docs 17 October 2022, 13:02:45 UTC
a07ac3f Rewrite explanation of problems with && and || in assertions 17 October 2022, 10:36:02 UTC
d8619f0 Fixup shard index docs Closes #2547 16 October 2022, 15:00:29 UTC
95cd95e Add extra explanations to some items in docs/readme.md This should make it easier for people to find what they need, e.g. finding generators by looking for "value parameterized tests". 15 October 2022, 21:50:20 UTC
eb73975 Bold section 'headings' in docs/readme.md 15 October 2022, 21:50:18 UTC
d1394a7 Link to SECTIONS doc at top of test fixtures page. I came here looking for a way to use a fixture. But what I really wanted was better done in the SECTION macro. Feels like a link right at the top would've made it clearer faster. 15 October 2022, 14:59:52 UTC
e94976e Downgrade MacOS version in GHA 15 October 2022, 11:06:50 UTC
0c962d1 Centralize and update docs for floating point comparisons The new docs mention that Approx is deprecated and should not be used, and explain the reasons behind it. Closes #1444 15 October 2022, 09:02:58 UTC
bdf3083 Mute the sign conversion warning with explicit cast 09 October 2022, 17:02:32 UTC
728de35 improve `-ffile-prefix-map` detection (#2517) the current implementation has two problems: * `clang-cl` does not know `-ffile-prefix-map`, but in CMake it is reported as "Clang", so the compiler will warn about an unknown compiler option. * XCode's clang in CMake is reported as "AppleClang", so it is not picked up as "Clang", so it is not passed `-ffile-prefix-map`, even though it supports it. Also changed the map so that the normalized `__FILE__` paths are the same as what the approval tests normalize paths into. Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com> 04 October 2022, 13:55:50 UTC
0e139b7 add versioning to shared libs (#2516) * add versioning to shared libs Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com> 04 October 2022, 13:49:09 UTC
97313f9 fix compilation on cygwin Use std::char_traits<char>::find instead of strnlen for better portability. 04 October 2022, 08:50:18 UTC
6a9bf2e meson cleanups with muon (#2539) * meson: run through muon's fmt to fix formatting * meson: switch arrays to files Allows muon to alphabetically sort files. switch headers back to arrays as split() can only be used on strings. Signed-off-by: Rosen Penev <rosenp@gmail.com> 03 October 2022, 15:23:38 UTC
980c206 Don't expose header windows.h in catch_all.hpp (#2526) * Don't expose header windows.h in catch_all.hpp * Fix generateAmalgamatedFiles.py 03 October 2022, 13:36:37 UTC
4db8b50 Add support for building with Meson (#2530) The Meson[1] build system makes it easier incorporate third-party libaries into a project if they also build using Meson. Let's add a minimal Meson build that's compatible with the CMake build, along with a GitHub workflow to check that it builds and that at least the simplest SelfTest runs. The handling of catch_user_config.hpp is inspired by BUILD.bazel and doesn't attempt to support any configuratons options. Such features could be added later. Meson strongly discourages using wildcards to specify sources, so the source and header lists are copied from CMakeLists.txt. Add a new test workflow to test the Meson builds. I was unable to get these tests to pass with Ubuntu 20.04, so they use Ubuntu 22.04. I'm neither a CMake nor a Meson expert, but the results seem to work for me. [1] https://mesonbuild.com/ Co-authored-by: Mike Crowe <mcrowe@brightsign.biz> 01 October 2022, 21:28:30 UTC
4a7cefe Unused variable removed 28 September 2022, 14:02:10 UTC
243cf71 Make Bazel work with CATCH_CONFIG_SHARED_LIBRARY 27 September 2022, 20:06:12 UTC
4bb7e02 Bazel build: Update of skylib 27 September 2022, 20:06:12 UTC
97d0b1e Suppress clang-tidy warnings for TEMPLATE_TEST_CASE (#2536) * Suppress clang-tidy *-avoid-c-arrays for TEMPLATE_TEST_CASE * Made globalRegistrar `const` to avoid `cppcoreguidelines-avoid-non-const-global-variables` Fixes #2095 26 September 2022, 16:07:50 UTC
c0e582e Fix building as shared library with MSVC. 24 September 2022, 13:15:50 UTC
0de60d8 Suppress -Wuseless-cast Warning Fixes #2520. 22 September 2022, 19:00:05 UTC
d6bbd3f warning: storage class is not first This pull request fixes the warning issued by `nvc++` (the C++ compiler in Nvidia HPC SDK/PGI), and is similar to pull request #1717. 21 September 2022, 18:14:12 UTC
98d37da Raise the minimum CMake version to 3.10 (#2523) 16 September 2022, 15:56:00 UTC
4b3defe Suppress warning "-Wstrict-aliasing" for GCC 5 and 6 15 September 2022, 11:40:16 UTC
c754308 Add GCC 5 and GCC 6 to CI 15 September 2022, 11:40:16 UTC
359542d FileStream: enable automatic flushing when a test executable is killed by a signal (e.g. when executed by ctest with timeout), the reporter files are not flushed. this can lead to incomplete (or empty) report files. to avoid this we enable automatic flushing via `std::unitbuf` compare #663 11 September 2022, 21:49:15 UTC
dea1a6a Fix typos in docs (#2514) 09 September 2022, 14:00:39 UTC
32eae0e Add missing include for VxWorks build. (#2515) `catch_sharding.hpp` was using `std::min` without including `<algorithm>`. This worked on most platforms, but it wasn't transitively included in the VxWorks toolchain. 08 September 2022, 08:21:36 UTC
4adf010 Mention dynamic library stuff in the FAQ Closes #2497 03 September 2022, 20:31:29 UTC
686468d Explain TU as translation unit where appropriate 03 September 2022, 20:22:10 UTC
7b2e7d6 Disable Bazel's env checking on UWP UWP does not support environment variables and so it cannot compile code using getenv. 02 September 2022, 05:11:28 UTC
3ca5cf3 Add CATCH_PLATFORM_WINDOWS_UWP detection macro 02 September 2022, 05:10:38 UTC
dc001fa Allow easy retrieval of RNG seed by the users This makes it so that they don't need parallel RNG seed passing infrastructure for randomized data generation (e.g. inputs for benchmarks). 18 August 2022, 21:23:18 UTC
33e7019 Link to the randomized-shard-registration script from usage tips 17 August 2022, 22:14:07 UTC
9bb206f Remove obsoleted sections of ci-and-misc.md 17 August 2022, 22:05:55 UTC
ab04e59 Improve v2->v3 migration docs 17 August 2022, 22:02:33 UTC
47d56f2 Fix compatibility with cmake 3.8 03 August 2022, 22:09:02 UTC
a118799 Switch MacOS image to macos-12 in Github Actions Also updated GCC version to GCC-11, which is packaged in the runner image. 03 August 2022, 21:54:49 UTC
997a7d4 Fix running the tests with shared library on Windows. Without this fix, the test executable fails because it can not find the dll of Catch2. 25 July 2022, 19:07:49 UTC
2b0fd85 Modify the install directories into convention. 25 July 2022, 08:43:41 UTC
a7dc85d Use DYLD_LIBRARY_PATH on apple platforms. 23 July 2022, 18:45:49 UTC
97c48e0 v3.1.0 17 July 2022, 18:18:44 UTC
9c9f350 Normalize C++ namespace in JUnit's reporter classname field Closes #2468 17 July 2022, 17:15:20 UTC
1bd2338 Add AllTrue, AnyTrue, NoneTrue matchers 16 July 2022, 14:16:05 UTC
f993b70 extend gitignore 16 July 2022, 14:16:05 UTC
back to top