mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 23:36:11 +01:00
ad1940f336
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.
2.9 KiB
2.9 KiB
List of examples
Already available
- Catch main: Catch-provided main
- Test Case: Single-file
- Test Case: Multiple-file 1, 2
- Assertion: REQUIRE, CHECK
- Fixture: Sections
- Fixture: Class-based fixtures
- BDD: SCENARIO, GIVEN, WHEN, THEN
- Report: Catch-provided main
- Report: TeamCity reporter
- Listener: Listeners
- Configuration: Provide your own output streams
- 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
Planned
- Assertion: REQUIRE_THAT and Matchers
- Assertion: REQUIRE_NO_THROW
- Assertion: REQUIRE_THROWS
- Assertion: REQUIRE_THROWS_AS
- Assertion: REQUIRE_THROWS_WITH
- Assertion: REQUIRE_THROWS_MATCHES
- Floating point: Approx - Comparisons
- Logging: CAPTURE - Capture expression
- Logging: INFO - Provide information with failure
- Logging: WARN - Issue warning
- Logging: FAIL, FAIL_CHECK - Issue message and force failure/continue
- Logging: SUCCEED - Issue message and continue
- Report: User-defined type
- Report: User-defined reporter
- Report: Automake reporter
- Report: TAP reporter
- Report: Multiple reporter
- Configuration: Provide your own main()
- Configuration: Compile-time configuration
- Configuration: Run-time configuration