Catch3 compatibility reference: This page describes the test-writing API Catch3 shares with Catch2: the macros, such as
TEST_CASEandREQUIRE, and theCatch::namespace keep Catch2's names. Headers and build names are Catch3's own (<Progmasoft/Catch3/TestMacros.hpp>,find_package(Catch3),Catch3::Catch3WithMain). See Catch3 additions for Progmasoft APIs.
List of examples
Already available
- Test Case: Single-file
- Test Case: Multiple-file 1, 2
- Assertion: REQUIRE, CHECK
- Fixture: Sections
- Fixture: Class-based fixtures
- Fixture: Persistent fixtures
- BDD: SCENARIO, GIVEN, WHEN, THEN
- Listener: Listeners
- Configuration: Provide your own output streams
- Configuration: Provide your own main
- Generators: Create your own generator
- Generators: Use map to convert types in GENERATE expression
- Generators: Run test with a table of input values
- Generators: Use variables in generator expressions
- Generators: Use custom variable capture in generator expressions
The checked-in examples above are the maintained examples. Additional assertions, reporters, and configuration features are documented in the reference pages; this catalog does not link to source files that do not exist.