5c88067 | Martin Hořeňovský | 16 April 2021, 18:14:58 UTC | v2.13.6 | 16 April 2021, 18:14:58 UTC |
86a4d70 | Georg Schwab | 14 April 2021, 06:35:59 UTC | fixed inconsistent semicolon expansion in catch_discover_tests (Bug #2214) | 16 April 2021, 15:26:08 UTC |
469a717 | Matteo Beniamino | 13 April 2021, 08:46:59 UTC | Fixed [dis]engage_platform declarations mismatch | 13 April 2021, 17:50:32 UTC |
42e368d | Martin Hořeňovský | 10 April 2021, 21:48:32 UTC | v2.13.5 | 10 April 2021, 21:48:32 UTC |
1ff1f27 | Clare Macrae | 05 April 2021, 13:10:10 UTC | Prevent Catch2 v2 tests running if loaded as a sub-project See #2202 | 09 April 2021, 21:54:13 UTC |
269f96e | Julien Brianceau | 07 April 2021, 21:02:12 UTC | Fix typos in the code base Note that only documentation and comments are impacted by this change. | 08 April 2021, 16:06:36 UTC |
cec3563 | Martin Hořeňovský | 05 April 2021, 13:17:28 UTC | Don't build Catch2WithMain target by default for v2 The `Catch2WithMain` target was added experimentally for v2.13.4 to provide potentially better compilation (and link) times to users. However, having it compiled by default causes worse experience for people who do not use it, and for the v2 versions the single include distribution is still the main one. Closes #2142 | 05 April 2021, 16:04:31 UTC |
b8b03da | Martin Hořeňovský | 04 April 2021, 11:35:38 UTC | Mangle doccoments to avoid breaking single include stitching | 04 April 2021, 16:09:29 UTC |
8f277a5 | Martin Hořeňovský | 27 March 2021, 16:54:22 UTC | Significantly refactor fatal error handling Because new glibc has changed `MINSIGSTKSZ` to be a syscall instead of being constant, the signal posix handling needed changes, as it used the value in constexpr context, for deciding size of an array. It would be simple to fix it by having the handler determine the signal handling stack size and allocate the memory every time the handler is being installed, but that would add another allocation and a syscall every time a test case is entered. Instead, I split apart the idea of preparing fatal error handlers, and engaging them, so that the memory can be allocated only once and still be guarded by RAII. Also turns out that Catch2's use of `MINSIGSTKSZ` was wrong, and we should've been using `SIGSTKSZ` the whole time, which we use now. Closes #2178 | 04 April 2021, 16:09:26 UTC |
4cb3220 | Pavel Kamenov | 30 March 2021, 06:25:38 UTC | Add lcc to the list of unwanted compilers that mimic gcc | 04 April 2021, 12:05:39 UTC |
b025a00 | Scott Hutchinson | 23 January 2021, 20:58:20 UTC | Wrap all std::min and std::max calls in parentheses | 20 February 2021, 22:28:20 UTC |
68975e3 | Rob Boehne | 21 January 2021, 21:50:49 UTC | [Issue 2154] Correct error when building with IBM's latest XLC (#2155) * [Issue 2154] Correct error when building with IBM's latest XLC compiler with xlclang++ front-end. On AIX, the XLC 16.1.0.1 compiler considers the call to `std::abs` ambigious, so it needs help with a static_cast to the type of the template argument. Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com> | 21 January 2021, 21:50:49 UTC |
bcb9ea8 | Martin Hořeňovský | 21 January 2021, 14:35:23 UTC | Merge pull request #2157 from tdegeus/patch Making target detection on Mac more robust | 21 January 2021, 14:35:23 UTC |
d4c9494 | Tom de Geus | 20 January 2021, 20:12:18 UTC | Making target detection on Mac more robust | 20 January 2021, 20:12:18 UTC |
bed285a | Mathieu Mirmont | 29 December 2020, 20:00:09 UTC | Make the build reproducible with g++-8 and clang-10 Make the build reproducible by removing references to the source directory from the Catch2WithMain static library. | 13 January 2021, 17:09:24 UTC |
de6fe18 | Martin Hořeňovský | 29 December 2020, 14:03:40 UTC | v2.13.4 | 29 December 2020, 14:03:40 UTC |
fe3dddc | Martin Hořeňovský | 29 December 2020, 14:02:11 UTC | Fix updateVersionPlaceholder when the placeholder starts the line | 29 December 2020, 14:02:25 UTC |
18ab353 | Reinhold Gschweicher | 17 December 2020, 13:02:48 UTC | Add deprecation warning in ParseAndCatchTests Parsing C++ with regex in CMake is error prone and regularly leads to silently dropped (not run) test cases. Going forward the function `catch_discover_tests` from `contrib/CMake.cmake` should be used. For more information see https://github.com/catchorg/Catch2/issues/2092#issuecomment-747342765 | 21 December 2020, 12:15:36 UTC |
2375a7f | Reinhold Gschweicher | 17 December 2020, 09:28:05 UTC | Fix Catch.cmake helper by setting variable globally Set `_CATCH_DISCOVER_TESTS_SCRIPT` helper variable globally. Otherwise in a scoped call (like `add_subdirectory()`) the variable gets lost. This lost variable results in a post build error with not much information to lead to the root of the problem. This enables the usage of the helper script with the following example structure - CMakeLists.txt (project root with `add_subdirectory(external/catch2)` - external/catch2 - CMakeLists.txt (contents listed below) - contrib/Catch.cmake - contrib/CatchAddTests.cmake - catch2/catch.hpp - tests - CMakeLists.txt (add tests with `catch_discover_tests(${PROJECT_NAME})`) contents of project specific helper `external/catch2/CMakeLists.txt` ```cmake cmake_minimum_required (VERSION 3.1...${CMAKE_VERSION}) project(Catch2 LANGUAGES CXX VERSION 2.13.3) add_library(Catch2 INTERFACE) target_include_directories(Catch2 INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}> ) # provide a namespaced alias for clients to 'link' against if catch is included as a sub-project add_library(Catch2::Catch2 ALIAS Catch2) include(contrib/Catch.cmake) ``` | 17 December 2020, 17:50:04 UTC |
fac517d | Martin Hořeňovský | 24 November 2020, 22:18:58 UTC | Fix conan package build | 26 November 2020, 14:05:58 UTC |
578f8b8 | Florian Berchtold | 21 September 2020, 10:51:54 UTC | Add bazel support | 18 November 2020, 20:37:12 UTC |
92f8b01 | Deniz Evrenci | 26 July 2019, 07:34:14 UTC | Add the static library Catch2WithMain It should provide a shared impl for all targets that need to link against Catch2's implementation. However, due to limitations of C++ linking and Catch2's v2 implementation, this is only experimental and might not work under some circumstances. | 18 November 2020, 20:37:10 UTC |
dc7e705 | Martin Hořeňovský | 17 November 2020, 20:08:33 UTC | Small cleanups for the reworked test case order hashing | 17 November 2020, 20:08:33 UTC |
3ba7455 | Sergio Losilla | 17 November 2020, 09:16:36 UTC | Modified hash to make it more independent of the choice of test names. | 17 November 2020, 19:58:16 UTC |
ff349a5 | Martin Hořeňovský | 31 October 2020, 17:21:23 UTC | v2.13.3 | 31 October 2020, 17:21:23 UTC |
aca2472 | Martin Hořeňovský | 31 October 2020, 17:18:48 UTC | Stop uploading new releases to wandbox | 31 October 2020, 17:21:00 UTC |
765ac08 | Martin Hořeňovský | 22 October 2020, 12:20:47 UTC | Fix potential infinite loops in generators combined with section filter The problem was that under specific circumstances, namely that none of their children progressed, `GeneratorTracker` will not progress. This was changed recently, to allow for code like this, where a `SECTION` follows a `GENERATE` at the same level: ```cpp SECTION("A") {} auto a = GENERATE(1, 2); SECTION("B") {} ``` However, this interacted badly with `SECTION` filters (`-c foo`), as they could deactivate all `SECTION`s below a generator, and thus stop it from progressing forever. This commit makes GeneratorTracker check whether there are any filters active, and if they are, it checks whether its section-children can ever run. Fixes #2025 | 31 October 2020, 17:04:15 UTC |
8dd25b0 | Martin Hořeňovský | 21 October 2020, 13:30:26 UTC | Fix bunch of links to master to point to v2.x branch Fixes #2063 Related to #2050 | 21 October 2020, 13:30:35 UTC |
69297ce | Reinhold Gschweicher | 20 October 2020, 07:11:22 UTC | Consider CMP0110 add_test() policy CMake 3.19 introduces new add_test() behavior guarded with the policy CMP0110. See: https://cmake.org/cmake/help/latest/policy/CMP0110.html Update the helper script ParseAndAddCatchTests to consider the policy and handle the test case name accordingly. | 20 October 2020, 21:25:45 UTC |
2d30df3 | Reinhold Gschweicher | 20 October 2020, 09:24:00 UTC | Fix indentation in ParseAndAddCatchTests Consistently use 4 spaces instead of tabs | 20 October 2020, 11:48:46 UTC |
77b2a7d | Reinhold Gschweicher | 19 October 2020, 15:57:00 UTC | Fix CMake regex to add tests Fix regex that requires two string arguments in the form of TEST_CASE("a", "b") resulting in not finding TEST_CASE("a") entries. See https://regex101.com/r/JygOND/1 Fixes: https://github.com/catchorg/Catch2/issues/2055 | 20 October 2020, 11:48:14 UTC |
e905edb | laoshanxi | 10 October 2020, 01:58:12 UTC | Add AppMesh to Open Source projects using Catch | 20 October 2020, 11:48:14 UTC |
87074da | Martin Hořeňovský | 07 October 2020, 09:43:02 UTC | v2.13.2 | 07 October 2020, 09:43:02 UTC |
e6f5e05 | Martin Hořeňovský | 06 October 2020, 09:07:53 UTC | Improve detection of std::uncaught_exceptions support The problem was that Catch2 did not reliably include `<exception>` before it checked for the feature test macro for `std::uncaught_exceptions`. To avoid overhead of including `<exception>` everywhere, the configuration check was split out into a separate header. Closes #2021 | 06 October 2020, 09:07:53 UTC |
44900d5 | Rémy Salim | 01 October 2020, 09:23:14 UTC | Add WORKING_DIRECTORY to CatchAddTests.cmake commands | 02 October 2020, 21:29:40 UTC |
7c75eca | Martin Hořeňovský | 02 October 2020, 21:22:49 UTC | Workaround AppleClang bug by renaming TestHasher constructor argument As far as I understand the standard, if there is a function called `rng` in the global namespace, and a function argument called `rng`, then the argument should shadow the function. This then means that uses of `rng` inside the function should refer to the argument. This is not the case for AppleClang 12.0.0. Luckily the workaround is simple enough; just rename the argument. Given that the function is 3 lines and uncomplicated, the change of the name doesn't really affect readability. Still, WTF AppleClang? Closes #2030 | 02 October 2020, 21:22:49 UTC |
fba0fee | Matt Godbolt | 24 September 2020, 19:14:45 UTC | Add missing syntax highlighting tag | 24 September 2020, 20:43:07 UTC |
3e8800b | Ansel Sermersheim | 23 September 2020, 16:13:29 UTC | Support template test cases in ParseAndAddCatchTests * Change regex to allow parentheses inside the test macro for a type list * Append a wildcard to the CTestName if the test case is a template * Also change the regular expression so parentheses are allowed in names (fixes #1848) | 24 September 2020, 20:42:32 UTC |
314a05d | Martin Hořeňovský | 23 September 2020, 20:47:21 UTC | Merge pull request #2023 from globberwops/feature/add-reporter-and-output-dir Add REPORTER and OUTPUT_DIR args to catch_discover_tests | 23 September 2020, 20:47:21 UTC |
eadf4e3 | Martin Stump | 12 September 2020, 09:12:30 UTC | Add REPORTER and OUTPUT_* args | 23 September 2020, 17:12:06 UTC |
f9620d1 | Florian Berchtold | 20 September 2020, 16:09:33 UTC | Docu/Show how to use CMake FetchContent (#2028) | 20 September 2020, 16:09:33 UTC |
00db4fb | Will Pazner | 17 September 2020, 16:45:43 UTC | Disable __builtin_constant_p when compiling with nvcc | 18 September 2020, 14:07:18 UTC |
2fc83e7 | kotaiadam | 11 September 2020, 12:05:10 UTC | fixes bug in example - undeclared identifier j was not declared in `SECTION("two")` | 12 September 2020, 09:40:30 UTC |
a2e5ce2 | Travis Wilson | 01 September 2020, 00:19:56 UTC | Make experimental capture work on Windows with read-write temp file behavior | 10 September 2020, 18:14:18 UTC |
fd9f5ac | Martin Hořeňovský | 07 September 2020, 10:34:55 UTC | v2.13.1 | 07 September 2020, 10:34:55 UTC |
f0dc4d9 | Dawid Kurek | 24 August 2020, 08:03:04 UTC | Remove superfluous values The `0`s were needed for the expansion of parameter pack for the sake of expander. Now when we have `index++` it is no more needed. | 27 August 2020, 09:15:58 UTC |
284672c | Sean Middleditch | 18 August 2020, 08:34:47 UTC | Support sentinel-based ranges in default stringify (#2004) | 18 August 2020, 08:34:47 UTC |
2b34b5c | mattkurz | 03 August 2020, 19:51:08 UTC | Fix typo in generators docs | 03 August 2020, 21:33:32 UTC |
708487d | Gregory Bond | 03 August 2020, 03:03:19 UTC | Issue 1992: Better c++17 std::byte detection This fixed buld errors for ubuntu-16 + clang and similar situations where C++17 is supported in the compiler but not the default C++ standard library. | 03 August 2020, 12:38:56 UTC |
6859c68 | James Touton | 19 July 2020, 02:42:48 UTC | Don't apply global settings when configuring as a subproject. | 01 August 2020, 17:42:30 UTC |
de3a208 | Karthik Nishanth | 31 July 2020, 06:24:44 UTC | Update ParseAndAddCatchTests.cmake | 01 August 2020, 17:40:29 UTC |
229cc48 | Reinhold Gschweicher | 16 July 2020, 09:45:38 UTC | Fix CMake add test helper for CMake 3.18.0 With CMake 3.18.0 the `add_test(NAME)` handling changed. The escaped double quotes confuse the new call. Work around this upstream change. fixes: https://github.com/catchorg/Catch2/issues/1984 | 17 July 2020, 21:56:33 UTC |
7f21cc6 | Martin Hořeňovský | 12 July 2020, 18:28:38 UTC | v2.13.0 | 12 July 2020, 18:28:38 UTC |
4c85248 | Martin Hořeňovský | 12 July 2020, 18:27:25 UTC | Fixup whitespace in TAPReporter | 12 July 2020, 18:27:25 UTC |
b4e2237 | Martin Hořeňovský | 12 July 2020, 18:06:08 UTC | Remove pointless CompactReporter::getPreferences override | 12 July 2020, 18:06:14 UTC |
40937b6 | Martin Hořeňovský | 12 July 2020, 18:00:03 UTC | Merge pull request #1983 from s7726/patch-1 Update catch_reporter_tap.hpp | 12 July 2020, 18:00:03 UTC |
0d5b131 | Martin Hořeňovský | 12 July 2020, 14:27:55 UTC | Improve documentation for --min-duration | 12 July 2020, 14:27:55 UTC |
ad3b905 | Martin Hořeňovský | 12 July 2020, 14:20:26 UTC | Document GENERATE's new usage between SECTIONs | 12 July 2020, 14:24:32 UTC |
b1c4565 | Gavin S | 12 July 2020, 08:17:37 UTC | Update catch_reporter_tap.hpp TAP format requires all results to be reported. Removed extraneous preferences function (handled by parent) Incorporated fix from 3d9e7db2e0fff8fc2edcf59d24351f3937e3ac62 Simplified total printing | 12 July 2020, 08:17:37 UTC |
b79a83e | Martin Hořeňovský | 04 July 2020, 15:45:30 UTC | Modify generator tracking to allow GENERATEs between SECTIONs This means that code such as ```cpp TEST_CASE() { SECTION("first") { SUCCEED(); } auto _ = GENERATE(1, 2); SECTION("second") { SUCCEED(); } } ``` will run and report 3 assertions, 1 from section "first" and 2 from section "second". This also applies for greater and potentially more confusing nesting, but fundamentally it is up to the user to avoid overly complex and confusing nestings, just as with `SECTION`s. The old behaviour of `GENERATE` as first thing in a `TEST_CASE`, `GENERATE` not followed by a `SECTION`, etc etc should be unchanged. Closes #1938 | 11 July 2020, 21:16:07 UTC |
89fe35d | Martin Hořeňovský | 11 July 2020, 19:31:08 UTC | Fix how testRandomOrder.py builds tag arguments | 11 July 2020, 19:32:10 UTC |
115d6a1 | Martin Hořeňovský | 07 July 2020, 09:36:51 UTC | Increase tolerances in --min-duration tests The underpowered and oversubscribed CI servers are hell. | 07 July 2020, 09:36:56 UTC |
9157635 | Martin Hořeňovský | 07 July 2020, 09:30:37 UTC | Fixup single_include to be consistent with last tag Closes #1975 | 07 July 2020, 09:32:05 UTC |
6f7c191 | Martin Hořeňovský | 06 July 2020, 18:33:08 UTC | --min-duration is overriden by -d no | 06 July 2020, 18:33:08 UTC |
4eb9d37 | Martin Hořeňovský | 06 July 2020, 18:02:20 UTC | Refactor tests for duration reporting threshold | 06 July 2020, 18:02:20 UTC |
53d8af8 | John Bytheway | 13 April 2020, 12:37:23 UTC | Test for --min-duration | 06 July 2020, 09:35:02 UTC |
46fde0c | John Bytheway | 13 April 2020, 12:34:27 UTC | Add --min-duration option A test runner already has a --durations option to print durations. However, this isn't entirely satisfactory. When there are many tests, this produces output spam which makes it hard to find the test failure output. Nevertheless, it is helpful to be informed of tests which are unusually slow. Therefore, introduce a new option --min-duration that causes all durations above a certain threshold to be printed. This allows slow tests to be visible without mentioning every test. | 06 July 2020, 09:35:02 UTC |
de103db | Martin Hořeňovský | 06 July 2020, 09:34:22 UTC | Merge pull request #1973 from echuber2/patch-1 Escaping "*" ("times") to fix Markdown presentation | 06 July 2020, 09:34:22 UTC |
fedc3a7 | Eric Huber | 05 July 2020, 22:04:00 UTC | Escaping literal "*" ("times") to fix markdown | 05 July 2020, 22:04:00 UTC |
c299133 | Martin Hořeňovský | 05 July 2020, 09:51:30 UTC | v2.12.4 | 05 July 2020, 09:51:30 UTC |
09b8017 | Martin Hořeňovský | 04 July 2020, 18:06:27 UTC | Update FUNDING file (-Patreon, +PayPal) | 04 July 2020, 18:06:27 UTC |
bad3c93 | George Rhoten | 01 July 2020, 15:36:23 UTC | Fix for macOS on ARM | 01 July 2020, 17:28:50 UTC |
0f05c03 | Martin Hořeňovský | 29 June 2020, 18:50:39 UTC | v2.12.3 | 29 June 2020, 18:50:39 UTC |
ee4538c | Ryan Pavlik | 11 June 2020, 21:58:56 UTC | Add OverallResultsCases element to XML reporter | 28 June 2020, 20:36:08 UTC |
dc7a20f | Martin Hořeňovský | 26 June 2020, 18:00:14 UTC | Rewrite the contributing documentation | 27 June 2020, 15:44:08 UTC |
018dc0b | Martin Hořeňovský | 23 June 2020, 16:30:48 UTC | Replace a TODO comment in examples | 26 June 2020, 18:04:05 UTC |
ad1940f | Richard Ash | 19 June 2020, 14:32:08 UTC | Add an example of using GENERATE(table()) There are some examples on issue #850 of using this feature, but they are not easily found from the documentation. Adding them here as an example makes them more findable and ensures they keep working if the API changes. | 23 June 2020, 20:55:03 UTC |
5399921 | Richard Ash | 18 June 2020, 16:40:18 UTC | Add notes on compiling the examples. This took me some time to figure out so document for others. | 20 June 2020, 19:41:10 UTC |
e815acd | offa | 29 April 2020, 11:18:46 UTC | Clang-format configuration added. Some notes on the configuration options chosen: * We want `AllowShortEnumsOnASingleLine` set to `false`, but that option is clang-format-11 and up, which is not out yet. * `IndentPPDirectives` is currently inconsistent, but `AfterHash` is the preferred style in new code. * `NamespaceIndentation` is a mess, but `All` is closer to the effect we want than `Inner`. * `SpacesInParentheses` set to `true` is not ideal due to it also introducing extra spaces in preprocessor expressions, but using it is much closer to the current style than not. All in all, using this setting globally would reformat pretty much every line of code in the codebase, but it is as close as possible to the bespoke style currently used. Still, it should only be used on the diffs. Closes #1182 | 19 June 2020, 07:49:10 UTC |
e7189f1 | Richard Ash | 18 June 2020, 16:02:21 UTC | Make scripts/updateDocumentToC.py executable. On systems where the file system has excute permissions, this script was not marked as executable in a clean git checkout and so could be run without first changing the permissions. Fixed by setting the relevant git flag. | 18 June 2020, 19:28:08 UTC |
1806b21 | Martin Hořeňovský | 14 June 2020, 19:48:08 UTC | Add explicit test for shortcircuiting behaviour of combined matchers | 14 June 2020, 19:48:08 UTC |
288416f | Martin Hořeňovský | 13 June 2020, 17:26:17 UTC | Devirtualize NameAndLocation query on trackers | 13 June 2020, 17:26:17 UTC |
cbbebb6 | Martin Hořeňovský | 13 June 2020, 13:41:25 UTC | Fix copy paste error in 7-arg TEMPLATE_TEST_CASE_SIG implementation Closes #1954 | 13 June 2020, 13:46:59 UTC |
fb08596 | Martin Hořeňovský | 13 June 2020, 09:11:19 UTC | Clarify documentation about nested generators Closes #1947 | 13 June 2020, 09:12:12 UTC |
0614a4a | Matthias Blankertz | 04 June 2020, 09:53:13 UTC | Hide std::exception_ptr and friends if exceptions disabled Some compilers, e.g. the Green Hills C++ compiler, react badly to the appearance of std::exception_ptr, std::current_exception, std::rethrow_exception and std::uncaught_exception(s). To allow usage of Catch2 with these compilers when exceptions are disabled, hide the usage of std::exception_ptr etc. when compiling with CATCH_CONFIG_DISABLE_EXCEPTIONS. | 12 June 2020, 21:23:55 UTC |
0f12995 | Martin Hořeňovský | 01 June 2020, 19:27:58 UTC | Fix compilation of examples | 01 June 2020, 19:27:58 UTC |
0807fdb | Martin Hořeňovský | 01 June 2020, 17:06:41 UTC | Replace stray tabs with spaces | 01 June 2020, 17:06:51 UTC |
9500ded | Martin Hořeňovský | 01 June 2020, 17:04:23 UTC | Improved generator tracking * Successive executions of the same `GENERATE` macro (e.g. because of a for loop) no longer lead to multiple nested generators. * The same line can now contain multiple `GENERATE` macros without issues. Fixes #1913 | 01 June 2020, 17:06:51 UTC |
6c6ebe3 | bogdasar1985 | 28 May 2020, 14:13:55 UTC | fixing UB | 29 May 2020, 12:56:40 UTC |
b1b5cb8 | Martin Hořeňovský | 25 May 2020, 13:13:18 UTC | v2.12.2 | 25 May 2020, 13:13:18 UTC |
77dc8cf | Martin Hořeňovský | 21 May 2020, 19:39:19 UTC | Really fix use of std::result_of when invoke_result is available Closes #1934 | 22 May 2020, 08:05:34 UTC |
ddc9f4c | Martin Hořeňovský | 21 May 2020, 19:39:19 UTC | Avoid using std::result_of when std::invoke_result is available Closes #1934 | 21 May 2020, 19:39:19 UTC |
bed4737 | Martin Hořeňovský | 18 May 2020, 12:29:50 UTC | Remove obsolete comment in UnorderedEquals vector matcher | 18 May 2020, 12:29:50 UTC |
0e9bae1 | Valentin Tolmer | 08 May 2020, 08:08:46 UTC | Create a BUILD file for compatibility with bazel With this change, it's much easier for bazel projects to depend on Catch. They just need to add: - In the workspace: ``` http_archive( name = "com_github_catchorg_catch2", urls = ["https://github.com/catchorg/Catch2/archive/v2.12.1.tar.gz"], strip_prefix = "Catch2-2.12.1", sha256 = "e5635c082282ea518a8dd7ee89796c8026af8ea9068cd7402fb1615deacd91c3", ) ``` Or the appropriate version/sha256. - For the tests, assuming that `test_main.cc` contains the `CATCH_CONFIG_MAIN`: ``` cc_library( name = "test_main", srcs = ["test_main.cc"], deps = ["@com_github_catchorg_catch2//:catch2"], ) ``` | 17 May 2020, 11:18:22 UTC |
f133277 | Martin Hořeňovský | 15 May 2020, 19:00:19 UTC | Add status attribute to JUnit's section reporting This brings our output inline with GTest's. We do not handle skipped tests properly, but that should be currently less important than having the attribute exist with proper value for non-skipped tests. Thanks @joda-01. Closes #1899 | 15 May 2020, 19:00:19 UTC |
f764ee3 | Martin Hořeňovský | 15 May 2020, 13:57:27 UTC | Document that user can only provide main in TU with CONFIG_RUNNER Closes #1851 | 15 May 2020, 13:57:27 UTC |
c190061 | Natsu | 15 May 2020, 09:30:12 UTC | Fix compilation failure when using libstdc++10 (#1929) The issue is caused by deleted `std::__detail::begin` declared in `bits/iterator_concepts.h`. This would be found by ADL, and because it is deleted, compilation would fail. This change makes it so that we SFINAE on `begin(std::declval<T>())` and `end(std::declval<T>())` being well-formed. | 15 May 2020, 09:30:12 UTC |
b1dcdc5 | Billy Robert O'Neal III | 12 May 2020, 03:38:09 UTC | Fix invalid isspace call detected by PREfast D:\vcpkg\toolsrc\include\catch2\catch.hpp(11285): warning C6330: 'char' passed as _Param_(1) when 'unsigned char' is required in call to 'isspace'. D:\vcpkg\toolsrc\include\catch2\catch.hpp(11288): warning C6330: 'char' passed as _Param_(1) when 'unsigned char' is required in call to 'isspace'. ISO/IEC 9899:2011: "7.4 Character handling <ctype.h>"/1 [...] In all cases the argument is an int, the value of which shall be representable as an unsigned char or shall equal the value of the macro EOF. If the argument has any other value, the behavior is undefined. This means if isspace was passed a character like ñ it could corrupt memory without the static_cast to treat it as a positive value after integral promotion (and C libraries commonly use the int index supplied as a key into a table which result in out of bounds access if the resulting int is negative). | 12 May 2020, 12:07:22 UTC |
f0e596e | Martin Hořeňovský | 09 May 2020, 16:23:09 UTC | Silence clang-tidy's hicpp-vararg (alias of coreguidelines vararg) Ideally, clang-tidy would be smart that if one alias of a warning is suppressed, then the other one is suppressed as well, but as of right now, it isn't. This means that for now we have to suppress both aliases of this warning. Opened upstream issue to fix this: https://bugs.llvm.org/show_bug.cgi?id=45859 Obviously, ideally clang-tidy would also not warn that we are calling a vararg function when it is an unevaluated magic builtin, but that also is not happening right now and I opened an issue for it: https://bugs.llvm.org/show_bug.cgi?id=45860 Closes #1921 | 09 May 2020, 16:23:12 UTC |
594cab3 | Martin Hořeňovský | 06 May 2020, 18:49:15 UTC | Upload conan releases to catch2 remote (instead of Catch2) At some point we moved over to catch2:catchorg (notice lowercase `c`) instead of Catch2:catchorg, but we kept uploading the released packages to the upper-cased repository... Time to fix this, and then merge them again. | 06 May 2020, 18:49:26 UTC |