Skip to content

Tags: ifknot/Catch2

Tags

v2.7.2

Toggle v2.7.2's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
horenmar Martin Hořeňovský
v2.7.2

----- Improvements -----
* Added an approximate vector matcher (catchorg#1499)

----- Fixes -----
* Filters will no longer be shown if there were none
* Fixed compilation error when using Homebrew GCC on OS X (catchorg#1588, catchorg#1589)
* Fixed the console reporter not showing messages that start with a newline (catchorg#1455, catchorg#1470)
* Modified JUnit reporter's output so that rng seed and filters are reported according to the JUnit schema (catchorg#1598)
* Fixed some obscure warnings and static analysis passes

----- Miscellaneous -----
* Various improvements to `ParseAndAddCatchTests` (catchorg#1559, catchorg#1601)
  * When a target is parsed, it receives `ParseAndAddCatchTests_TESTS` property which summarizes found tests
  * Fixed problem with tests not being found if the `OptionalCatchTestLauncher` variables is used
  * Including the script will no longer forcefully modify `CMAKE_MINIMUM_REQUIRED_VERSION`
  * CMake object libraries are ignored when parsing to avoid needless warnings
* `CatchAddTests` now adds test's tags to their CTest labels (catchorg#1600)

v2.7.1

Toggle v2.7.1's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
horenmar Martin Hořeňovský
v2.7.1

--- Improvements ---
* Reporters now print out the filters applied to test cases (catchorg#1550, catchorg#1585)
* Added `GENERATE_COPY` and `GENERATE_VAR` macros that can use variables inside the generator expression
  * Because of the significant danger of lifetime issues, the default `GENERATE` macro still does not allow variables
* The `map` generator helper now deduces the mapped return type (catchorg#1576)

--- Fixes ---
* Fixed ObjC++ compilation (catchorg#1571)
* Fixed test tag parsing so that `[.foo]` is now parsed as `[.][foo]`.
* Suppressed warning caused by the Windows headers defining SE codes in different manners (catchorg#1575)

v2.7.0

Toggle v2.7.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
horenmar Martin Hořeňovský
v2.7.0

--- Improvements ---
* `TEMPLATE_PRODUCT_TEST_CASE` now uses the resulting type in the name, instead of the serial number (catchorg#1544)
* Catch2's single header is now strictly ASCII (catchorg#1542)
* Added generator for random integral/floating point types
  * The types are inferred within the `random` helper
* Added back RangeGenerator (catchorg#1526)
  * RangeGenerator returns elements within a certain range
* Added ChunkGenerator generic transform (catchorg#1538)
  * A ChunkGenerator returns the elements from different generator in chunks of n elements
* Added `UNSCOPED_INFO` (catchorg#415, catchorg#983, catchorg#1522)
  * This is a variant of `INFO` that lives until next assertion/end of the test case.

--- Fixes ---
* All calls to C stdlib functions are now `std::` qualified (catchorg#1541)
  * Code brought in from Clara was also updated.
* Running tests will no longer open the specified output file twice (catchorg#1545)
  * This would cause trouble when the file was not a file, but rather a named pipe
  * Fixes the CLion/Resharper integration with Catch
* Fixed `-Wunreachable-code` occuring with (old) ccache+cmake+clang combination (catchorg#1540)
* Fixed `-Wdefaulted-function-deleted` warning with Clang 8 (catchorg#1537)
* Catch2's type traits and helpers are now properly namespaced inside `Catch::` (catchorg#1548)
* Fixed std{out,err} redirection for failing test (catchorg#1514, catchorg#1525)
  * Somehow, this bug has been present for well over a year before it was reported

v2.6.1

Toggle v2.6.1's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
horenmar Martin Hořeňovský
v2.6.1

=== Improvements ===

* The JUnit reporter now also reports random seed (catchorg#1520, catchorg#1521)

=== Fixes ===

* The TAP reporter now formats comments with test name properly (catchorg#1529)
* `CATCH_REQUIRE_THROWS`'s internals were unified with `REQUIRE_THROWS` (catchorg#1536)
  * This fixes a potential `-Wunused-value` warning when used
* Fixed a potential segfault when using any of the `--list-*` options (catchorg#1533, catchorg#1534)

v2.6.0

Toggle v2.6.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
horenmar Martin Hořeňovský
v2.6.0

**With this release the data generator feature is now fully supported.**

--- Improvements ---
* Added `TEMPLATE_PRODUCT_TEST_CASE` (catchorg#1454, catchorg#1468)
  * This allows you to easily test various type combinations, see documentation for details
* The error message for `&&` and `||` inside assertions has been improved (catchorg#1273, catchorg#1480)
* The error message for chained comparisons inside assertions has been improved (catchorg#1481)
* Added `StringMaker` specialization for `std::optional` (catchorg#1510)
* The generator interface has been redone once again (catchorg#1516)
  * It is no longer considered experimental and is fully supported
  * The new interface supports "Input" generators
  * The generator documentation has been fully updated
  * We also added 2 generator examples

--- Fixes ---
* Fixed `-Wredundant-move` on newer Clang (catchorg#1474)
* Removed unreachable mentions `std::current_exception`, `std::rethrow_exception` in no-exceptions mode (catchorg#1462)
  * This should fix compilation with IAR
* Fixed missing `<type_traits>` include (catchorg#1494)
* Fixed various static analysis warnings
  * Unrestored stream state in `XmlWriter` (catchorg#1489)
  * Potential division by zero in `estimateClockResolution` (catchorg#1490)
  * Uninitialized member in `RunContext` (catchorg#1491)
  * `SourceLineInfo` move ops are now marked `noexcept`
  * `CATCH_BREAK_INTO_DEBUGGER` is now always a function
* Fix double run of a test case if user asks for a specific section (catchorg#1394, catchorg#1492)
* ANSI colour code output now respects `-o` flag and writes to the file as well (catchorg#1502)
* Fixed detection of `std::variant` support for compilers other than Clang (catchorg#1511)

--- Contrib ---
* `ParseAndAddCatchTests` has learned how to use `DISABLED` CTest property (catchorg#1452)
* `ParseAndAddCatchTests` now works when there is a whitspace before the test name (catchorg#1493)

--- Miscellaneous ---
* We added new issue templates for reporting issues on GitHub
* `contributing.md` has been updated to reflect the current test status (catchorg#1484)

v2.5.0

Toggle v2.5.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
horenmar Martin Hořeňovský
v2.5.0

Improvements
* Added support for templated tests via `TEMPLATE_TEST_CASE` (catchorg#1437)

Fixes
* Fixed compilation of `PredicateMatcher<const char*>` by removing partial specialization of `MatcherMethod<T*>`
* Listeners now implicitly support any verbosity (catchorg#1426)
* Fixed compilation with Embarcadero builder by introducing `Catch::isnan` polyfill (catchorg#1438)
* Fixed `CAPTURE` asserting for non-trivial captures (catchorg#1436, catchorg#1448)

Miscellaneous
* We should now be providing first party Conan support via https://bintray.com/catchorg/Catch2 (catchorg#1443)
* Added new section "deprecations and planned changes" to the documentation
  * It contains summary of what is deprecated and might change with next major version
* From this release forward, the released headers should be pgp signed (catchorg#430)
  * KeyID `E29C 46F3 B8A7 5028 6079 3B7D ECC9 C20E 314B 2360`
  * or https://codingnest.com/files/horenmar-publickey.asc