catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Release 0.5.0
- Commit
3be63aa6427af46c47ca47a5d100b025bc93c617- Author
- Leitwolf11 ·
- Parents
b1e8dbe8e38e
Changes
CMakeLists.txt | 2 +- MODULE.bazel | 2 +- docs/release-notes.md | 51 ++++++++++++++++++++++++++++++++ extras/catch_amalgamated.cpp | 4 +-- extras/catch_amalgamated.hpp | 2 +- extras/catch_amalgamated_third_party.hpp | 2 +- meson.build | 2 +- src/Progmasoft/Catch3/Version.hpp | 2 +- xmake.lua | 2 +- 9 files changed, 60 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f11db942..0f680341 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,7 @@ endif() # The version is Catch3's; the Catch2 engine it is built on keeps its own in # CATCH_VERSION_MAJOR and the other macros of Progmasoft/Catch3/EngineVersionMacros.hpp. project(Catch3 - VERSION 0.4.0 + VERSION 0.5.0 LANGUAGES CXX HOMEPAGE_URL "https://catch3.uk" DESCRIPTION "A C++ test framework with a Catch2-compatible API, a parallel runner, property testing and snapshots." diff --git a/MODULE.bazel b/MODULE.bazel index d64c1bb0..e2fc74e7 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,4 +1,4 @@ -module(name = "progmasoft_catch3", version = "0.4.0", bazel_compatibility = [">=8.0.0"]) +module(name = "progmasoft_catch3", version = "0.5.0", bazel_compatibility = [">=8.0.0"]) bazel_dep(name = "bazel_skylib", version = "1.9.0") bazel_dep(name = "rules_cc", version = "0.2.17") diff --git a/docs/release-notes.md b/docs/release-notes.md index a250fc95..ef58fe29 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -7,6 +7,7 @@ based on Catch2 3.16.1; Catch2's own history is in [its release notes](https://github.com/catchorg/Catch2/blob/devel/docs/release-notes.md). **Contents**<br> +[0.5.0](#050)<br> [0.4.0](#040)<br> [0.3.0.2](#0302)<br> [0.3.0.1](#0301)<br> @@ -15,6 +16,56 @@ based on Catch2 3.16.1; Catch2's own history is in [0.1.0](#010)<br> +## 0.5.0 + +Released 2026-11-29. + +### License + +* The files Progmasoft wrote are under the LGPL-3.0-or-later from this release + on; the files that come from Catch2 stay under the BSL-1.0. Catch3 as a whole + cannot set the LGPL aside. Earlier releases keep the license they were + published with. See `LICENSES/README.md`. + +### New + +* Death tests: `CATCH3_CHECK_DEATH` and `CATCH3_REQUIRE_DEATH` pass when the + statement ends the process, `CATCH3_CHECK_DEATH_THAT` matches what it wrote + to standard error, and `CATCH3_CHECK_EXIT` with `ExitedWith{ code }` checks + how it ended. The statement runs in a child process, so the test goes on. + They work with and without exceptions, and on Windows. +* Comparison assertions: `CHECK_EQ`, `CHECK_NE`, `CHECK_LT`, `CHECK_LE`, + `CHECK_GT`, `CHECK_GE` and the same six `REQUIRE_` forms. Each shows both + values when it fails, evaluates each argument once, and follows + `CATCH_CONFIG_PREFIX_ALL` and `CATCH_CONFIG_DISABLE`. See + [Comparison macros](assertions.md#comparison-macros). +* Incremental runs take declared inputs: `--incremental-input=PATH` and + `--incremental-env=NAME` (and the same keys in the project file) make the + files, directories and variables a test reads part of its fingerprint, so a + passing result is kept only while they are unchanged. Without them a result + is kept as before. +* The Bazel Central Registry module is `progmasoft_catch3`, for Bazel 8 and + later, from this release on. +* An installed Catch3 links with `-lCatch3` and `-lCatch3Main`. + +### Fixes + +* The runner asks `read()` for at most `SSIZE_MAX` bytes, and three string and + XML reads are bounded. +* `Catch::toLower(char)` no longer fails `-Wsign-conversion`. +* Backported from Catch2 after 3.16.1: bootstrap confidence intervals stay in + range, placement new has its `<new>` include, and splitting strings keeps + empty and one-character fields; with ten self-test fixes. + +### Builds + +* The Premake build is deprecated: it is not tested, it warns when it runs, and + APIs added from this release on are not added to it. Bazel, CMake, Meson and + Xmake are the maintained builds. +* The fuzz targets run on every pull request and every night. +* The project's site is https://catch3.uk. + + ## 0.4.0 Released 2026-11-15. diff --git a/extras/catch_amalgamated.cpp b/extras/catch_amalgamated.cpp index c45d7b27..47e44619 100644 --- a/extras/catch_amalgamated.cpp +++ b/extras/catch_amalgamated.cpp @@ -6,7 +6,7 @@ // SPDX-License-Identifier: BSL-1.0 -// Catch3 v0.4.0, on the Catch2 v3.16.1 engine +// Catch3 v0.5.0, on the Catch2 v3.16.1 engine // ---------------------------------------------------------- // This file is an amalgamation of multiple different files. // You probably shouldn't edit it directly. @@ -2411,7 +2411,7 @@ namespace Progmasoft::Catch3 namespace Progmasoft::Catch3 { /// The version of Catch3: of its runner, its tools and its formats. - inline constexpr const char *kVersion = "0.4.0"; + inline constexpr const char *kVersion = "0.5.0"; } // namespace Progmasoft::Catch3 // Copyright (c) 2026 Progmasoft. // SPDX-License-Identifier: LGPL-3.0-or-later diff --git a/extras/catch_amalgamated.hpp b/extras/catch_amalgamated.hpp index 92b39f44..c011d772 100644 --- a/extras/catch_amalgamated.hpp +++ b/extras/catch_amalgamated.hpp @@ -6,7 +6,7 @@ // SPDX-License-Identifier: BSL-1.0 -// Catch3 v0.4.0, on the Catch2 v3.16.1 engine +// Catch3 v0.5.0, on the Catch2 v3.16.1 engine // ---------------------------------------------------------- // This file is an amalgamation of multiple different files. // You probably shouldn't edit it directly. diff --git a/extras/catch_amalgamated_third_party.hpp b/extras/catch_amalgamated_third_party.hpp index 2c96fb51..61f96e2c 100644 --- a/extras/catch_amalgamated_third_party.hpp +++ b/extras/catch_amalgamated_third_party.hpp @@ -1,4 +1,4 @@ -// Catch3 v0.4.0: yyjson and pugixml for catch_amalgamated.cpp +// Catch3 v0.5.0: yyjson and pugixml for catch_amalgamated.cpp // ---------------------------------------------------------- // This file is an amalgamation of src/Progmasoft/Runner/Yyjson.inl, // src/Progmasoft/PugiXml.inl and the libraries they include from diff --git a/meson.build b/meson.build index 4759576f..1f9ced8c 100644 --- a/meson.build +++ b/meson.build @@ -8,7 +8,7 @@ project( 'catch3', 'cpp', - version: '0.4.0', + version: '0.5.0', license: ['BSL-1.0', 'LGPL-3.0-or-later'], # Meson 1.1 added clang-cl support for the C++ modes used by Progmasoft tests. meson_version: '>=1.1.0', diff --git a/src/Progmasoft/Catch3/Version.hpp b/src/Progmasoft/Catch3/Version.hpp index 0c3984f4..01947119 100644 --- a/src/Progmasoft/Catch3/Version.hpp +++ b/src/Progmasoft/Catch3/Version.hpp @@ -5,5 +5,5 @@ namespace Progmasoft::Catch3 { /// The version of Catch3: of its runner, its tools and its formats. - inline constexpr const char *kVersion = "0.4.0"; + inline constexpr const char *kVersion = "0.5.0"; } // namespace Progmasoft::Catch3 diff --git a/xmake.lua b/xmake.lua index a6bcdec1..096a2baa 100644 --- a/xmake.lua +++ b/xmake.lua @@ -2,7 +2,7 @@ -- SPDX-License-Identifier: LGPL-3.0-or-later set_project("Catch3") -set_version("0.4.0") +set_version("0.5.0") set_languages("cxx17") set_warnings("all")