mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	remove duplicates, remove redundant home link on every file.
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/docs.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/docs.yml
									
									
									
									
										vendored
									
									
								
							@@ -26,6 +26,6 @@ jobs:
 | 
			
		||||
      run: poetry run mkdocs build
 | 
			
		||||
 | 
			
		||||
    - name: deploy
 | 
			
		||||
      if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
 | 
			
		||||
      if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/devel' }}
 | 
			
		||||
      run: poetry run mkdocs gh-deploy --force
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@ The ```CHECK``` family are equivalent but execution continues in the same test c
 | 
			
		||||
Evaluates the expression and records the result. If an exception is thrown, it is caught, reported, and counted as a failure. These are the macros you will use most of the time.
 | 
			
		||||
 | 
			
		||||
Examples:
 | 
			
		||||
```
 | 
			
		||||
```cpp
 | 
			
		||||
CHECK( str == "string value" );
 | 
			
		||||
CHECK( thisReturnsTrue() );
 | 
			
		||||
REQUIRE( i == 42 );
 | 
			
		||||
@@ -177,6 +177,4 @@ TEST_CASE_METHOD((Fixture<int, int>), "foo", "[bar]") {
 | 
			
		||||
This solution is not always applicable, because it might require extra
 | 
			
		||||
changes on the Catch's side to work.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 33 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 25 KiB  | 
@@ -105,6 +105,4 @@ when stepping through code.
 | 
			
		||||
integration with CMake has been moved to its own page.](cmake-integration.md#top)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -408,6 +408,4 @@ cd vcpkg
 | 
			
		||||
The catch2 port in vcpkg is kept up to date by microsoft team members and community contributors.
 | 
			
		||||
If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -583,6 +583,4 @@ ignored.
 | 
			
		||||
Verbosity defaults to _normal_.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,4 @@ with you sharing this fact.
 | 
			
		||||
 - [King](https://king.com)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -187,6 +187,4 @@ to Approx's value when computing the allowed relative margin from the
 | 
			
		||||
Approx's value.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -264,6 +264,4 @@ The macro will be used as is, that is, `CATCH_BREAK_INTO_DEBUGGER();`
 | 
			
		||||
must compile and must break into debugger.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -152,9 +152,7 @@ should use. It provides you with the top anchor mentioned to link to
 | 
			
		||||
Text that explains how to use the cool feature.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
* Crosslinks to different pages should target the `top` anchor, like this
 | 
			
		||||
@@ -338,6 +336,4 @@ while contributing to Catch2.
 | 
			
		||||
_This documentation will always be in-progress as new information comes
 | 
			
		||||
up, but we are trying to keep it as up to date as possible._
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -35,6 +35,4 @@ being aborted (when using `--abort` or `--abortx`). It is however
 | 
			
		||||
**NOT** invoked for test cases that are [explicitly skipped using the `SKIP`
 | 
			
		||||
macro](skipping-passing-failing.md#top).
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -39,6 +39,4 @@ _Note that you should not use any assertion macros within a Listener!_
 | 
			
		||||
own page](reporter-events.md#top).
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -89,6 +89,4 @@ above what your platform does. **Important: `<random>`'s distributions
 | 
			
		||||
are not specified to be repeatable across different platforms.**
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -3,44 +3,86 @@
 | 
			
		||||
 | 
			
		||||
## Already available
 | 
			
		||||
 | 
			
		||||
- Test Case: [Single-file](../examples/010-TestCase.cpp)
 | 
			
		||||
- Test Case: [Multiple-file 1](../examples/020-TestCase-1.cpp), [2](../examples/020-TestCase-2.cpp)
 | 
			
		||||
- Assertion: [REQUIRE, CHECK](../examples/030-Asn-Require-Check.cpp)
 | 
			
		||||
- Fixture: [Sections](../examples/100-Fix-Section.cpp)
 | 
			
		||||
- Fixture: [Class-based fixtures](../examples/110-Fix-ClassFixture.cpp)
 | 
			
		||||
- BDD: [SCENARIO, GIVEN, WHEN, THEN](../examples/120-Bdd-ScenarioGivenWhenThen.cpp)
 | 
			
		||||
- Listener: [Listeners](../examples/210-Evt-EventListeners.cpp)
 | 
			
		||||
- Configuration: [Provide your own output streams](../examples/231-Cfg-OutputStreams.cpp)
 | 
			
		||||
- Generators: [Create your own generator](../examples/300-Gen-OwnGenerator.cpp)
 | 
			
		||||
- Generators: [Use map to convert types in GENERATE expression](../examples/301-Gen-MapTypeConversion.cpp)
 | 
			
		||||
- Generators: [Run test with a table of input values](../examples/302-Gen-Table.cpp)
 | 
			
		||||
- Generators: [Use variables in generator expressions](../examples/310-Gen-VariablesInGenerators.cpp)
 | 
			
		||||
- Generators: [Use custom variable capture in generator expressions](../examples/311-Gen-CustomCapture.cpp)
 | 
			
		||||
### Test Case: Single-file
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/010-TestCase.cpp"
 | 
			
		||||
```
 | 
			
		||||
### Test Case: Multiple-files
 | 
			
		||||
=== "File 1"
 | 
			
		||||
    ```cpp
 | 
			
		||||
    --8<-- "examples/020-TestCase-1.cpp"
 | 
			
		||||
    ```
 | 
			
		||||
=== "File 2"
 | 
			
		||||
    ```cpp
 | 
			
		||||
    --8<-- "examples/020-TestCase-2.cpp"
 | 
			
		||||
    ```
 | 
			
		||||
### Assertion (REQUIRE, CHECK)
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/030-Asn-Require-Check.cpp"
 | 
			
		||||
```
 | 
			
		||||
### Fixtures 
 | 
			
		||||
#### Sections
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/100-Fix-Section.cpp"
 | 
			
		||||
```
 | 
			
		||||
#### Class-based fixtures
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/110-Fix-ClassFixture.cpp"
 | 
			
		||||
```
 | 
			
		||||
### BDD (SCENARIO, GIVEN, WHEN, THEN)
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/120-Bdd-ScenarioGivenWhenThen.cpp"
 | 
			
		||||
```
 | 
			
		||||
### Listener
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/210-Evt-EventListeners.cpp"
 | 
			
		||||
```
 | 
			
		||||
### Configuration - *Provide your own output streams*
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/231-Cfg-OutputStreams.cpp"
 | 
			
		||||
```
 | 
			
		||||
### Generators
 | 
			
		||||
#### Create your own generator
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/300-Gen-OwnGenerator.cpp"
 | 
			
		||||
```
 | 
			
		||||
#### Use map to convert types in GENERATE expression
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/301-Gen-MapTypeConversion.cpp"
 | 
			
		||||
```
 | 
			
		||||
#### Run test with a table of input values
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/302-Gen-Table.cpp"
 | 
			
		||||
```
 | 
			
		||||
#### Use variables in generator expressions
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/310-Gen-VariablesInGenerators.cpp"
 | 
			
		||||
```
 | 
			
		||||
#### Use custom variable capture in generator expressions
 | 
			
		||||
```cpp
 | 
			
		||||
--8<-- "examples/311-Gen-CustomCapture.cpp"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
??? note "Planned (TBD)"
 | 
			
		||||
     
 | 
			
		||||
      - Assertion: [REQUIRE_THAT and Matchers](../examples/040-Asn-RequireThat.cpp)
 | 
			
		||||
      - Assertion: [REQUIRE_NO_THROW](../examples/050-Asn-RequireNoThrow.cpp)
 | 
			
		||||
      - Assertion: [REQUIRE_THROWS](../examples/050-Asn-RequireThrows.cpp)
 | 
			
		||||
      - Assertion: [REQUIRE_THROWS_AS](../examples/070-Asn-RequireThrowsAs.cpp)
 | 
			
		||||
      - Assertion: [REQUIRE_THROWS_WITH](../examples/080-Asn-RequireThrowsWith.cpp)
 | 
			
		||||
      - Assertion: [REQUIRE_THROWS_MATCHES](../examples/090-Asn-RequireThrowsMatches.cpp)
 | 
			
		||||
      - Floating point: [Approx - Comparisons](../examples/130-Fpt-Approx.cpp)
 | 
			
		||||
      - Logging: [CAPTURE - Capture expression](../examples/140-Log-Capture.cpp)
 | 
			
		||||
      - Logging: [INFO - Provide information with failure](../examples/150-Log-Info.cpp)
 | 
			
		||||
      - Logging: [WARN - Issue warning](../examples/160-Log-Warn.cpp)
 | 
			
		||||
      - Logging: [FAIL, FAIL_CHECK - Issue message and force failure/continue](../examples/170-Log-Fail.cpp)
 | 
			
		||||
      - Logging: [SUCCEED - Issue message and continue](../examples/180-Log-Succeed.cpp)
 | 
			
		||||
      - Report: [User-defined type](../examples/190-Rpt-ReportUserDefinedType.cpp)
 | 
			
		||||
      - Report: [User-defined reporter](../examples/202-Rpt-UserDefinedReporter.cpp)
 | 
			
		||||
      - Report: [Automake reporter](../examples/205-Rpt-AutomakeReporter.cpp)
 | 
			
		||||
      - Report: [TAP reporter](../examples/206-Rpt-TapReporter.cpp)
 | 
			
		||||
      - Report: [Multiple reporter](../examples/208-Rpt-MultipleReporters.cpp)
 | 
			
		||||
      - Configuration: [Provide your own main()](../examples/220-Cfg-OwnMain.cpp)
 | 
			
		||||
      - Configuration: [Compile-time configuration](../examples/230-Cfg-CompileTimeConfiguration.cpp)
 | 
			
		||||
      - Configuration: [Run-time configuration](../examples/240-Cfg-RunTimeConfiguration.cpp)
 | 
			
		||||
 | 
			
		||||
## Planned
 | 
			
		||||
 | 
			
		||||
- Assertion: [REQUIRE_THAT and Matchers](../examples/040-Asn-RequireThat.cpp)
 | 
			
		||||
- Assertion: [REQUIRE_NO_THROW](../examples/050-Asn-RequireNoThrow.cpp)
 | 
			
		||||
- Assertion: [REQUIRE_THROWS](../examples/050-Asn-RequireThrows.cpp)
 | 
			
		||||
- Assertion: [REQUIRE_THROWS_AS](../examples/070-Asn-RequireThrowsAs.cpp)
 | 
			
		||||
- Assertion: [REQUIRE_THROWS_WITH](../examples/080-Asn-RequireThrowsWith.cpp)
 | 
			
		||||
- Assertion: [REQUIRE_THROWS_MATCHES](../examples/090-Asn-RequireThrowsMatches.cpp)
 | 
			
		||||
- Floating point: [Approx - Comparisons](../examples/130-Fpt-Approx.cpp)
 | 
			
		||||
- Logging: [CAPTURE - Capture expression](../examples/140-Log-Capture.cpp)
 | 
			
		||||
- Logging: [INFO - Provide information with failure](../examples/150-Log-Info.cpp)
 | 
			
		||||
- Logging: [WARN - Issue warning](../examples/160-Log-Warn.cpp)
 | 
			
		||||
- Logging: [FAIL, FAIL_CHECK - Issue message and force failure/continue](../examples/170-Log-Fail.cpp)
 | 
			
		||||
- Logging: [SUCCEED - Issue message and continue](../examples/180-Log-Succeed.cpp)
 | 
			
		||||
- Report: [User-defined type](../examples/190-Rpt-ReportUserDefinedType.cpp)
 | 
			
		||||
- Report: [User-defined reporter](../examples/202-Rpt-UserDefinedReporter.cpp)
 | 
			
		||||
- Report: [Automake reporter](../examples/205-Rpt-AutomakeReporter.cpp)
 | 
			
		||||
- Report: [TAP reporter](../examples/206-Rpt-TapReporter.cpp)
 | 
			
		||||
- Report: [Multiple reporter](../examples/208-Rpt-MultipleReporters.cpp)
 | 
			
		||||
- Configuration: [Provide your own main()](../examples/220-Cfg-OwnMain.cpp)
 | 
			
		||||
- Configuration: [Compile-time configuration](../examples/230-Cfg-CompileTimeConfiguration.cpp)
 | 
			
		||||
- Configuration: [Run-time configuration](../examples/240-Cfg-RunTimeConfiguration.cpp)
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -154,6 +154,4 @@ to enclose the expression inside parentheses:
 | 
			
		||||
`CAPTURE( (std::pair<int, int>{1, 2}) );`
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -435,6 +435,4 @@ and new style matchers arbitrarily.
 | 
			
		||||
> `MatcherGenericBase` lives in `catch2/matchers/catch_matchers_templated.hpp`
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -93,6 +93,4 @@ the [interfaces](reporters.md#top) and the [events](reporter-events.md#top)
 | 
			
		||||
are now documented.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -154,6 +154,4 @@ SpECTRE is a code for multi-scale, multi-physics problems in astrophysics and gr
 | 
			
		||||
### [Standardese](https://github.com/foonathan/standardese)
 | 
			
		||||
Standardese aims to be a nextgen Doxygen.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -127,6 +127,4 @@ part of the version. As an example, given single header version v2.3.4,
 | 
			
		||||
the macros would expand into `2`, `3`, and `4` respectively.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -1659,6 +1659,4 @@ Other:
 | 
			
		||||
## Even Older versions
 | 
			
		||||
Release notes were not maintained prior to v1.6.0, but you should be able to work them out from the Git history
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -170,6 +170,4 @@ or Windows SE handler is called into with a fatal signal/exception.
 | 
			
		||||
`noMatchingTestCases` is sent for each user provided test specification
 | 
			
		||||
that did not match any registered tests.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -208,6 +208,4 @@ important for the reporter to work _nicely_.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -124,6 +124,4 @@ TEST_CASE( "FAIL showcase" ) {
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -341,6 +341,4 @@ TEMPLATE_PRODUCT_TEST_CASE_SIG("A Template product test case with array signatur
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -157,6 +157,4 @@ TEMPLATE_LIST_TEST_CASE_METHOD(Template_Fixture,
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -127,6 +127,4 @@ inside the `StringMaker` specialization, like so:
 | 
			
		||||
This assertion will fail and print out the `testFloat1` and `testFloat2`
 | 
			
		||||
to 15 decimal places.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -222,6 +222,4 @@ about these as you go, in the ever-growing [reference section](Readme.md#top)
 | 
			
		||||
of the documentation.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -95,6 +95,4 @@ and makes tests easy to navigate by reflecting the project's organizational
 | 
			
		||||
structure.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
@@ -54,6 +54,4 @@ for some idea on who else also uses Catch2.
 | 
			
		||||
See the [tutorial](tutorial.md#top) to get more of a taste of using
 | 
			
		||||
Catch2 in practice.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Home](Readme.md#top)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								mkdocs.yml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								mkdocs.yml
									
									
									
									
									
								
							@@ -25,8 +25,8 @@ theme:
 | 
			
		||||
  font:
 | 
			
		||||
    text: Open Sans
 | 
			
		||||
    code: Fira Code
 | 
			
		||||
  logo: assets/catch2_logo_with_bg.png
 | 
			
		||||
  favicon: assets/c2_hand_logo.png
 | 
			
		||||
  logo: https://github.com/catchorg/Catch2/blob/devel/data/artwork/catch2-logo-small-with-background.png?raw=true
 | 
			
		||||
  favicon: https://github.com/catchorg/Catch2/blob/devel/data/artwork/catch2-hand-logo.png?raw=true
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
plugins:
 | 
			
		||||
@@ -34,9 +34,6 @@ plugins:
 | 
			
		||||
  - mike
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
markdown_extensions:
 | 
			
		||||
  - def_list
 | 
			
		||||
  - pymdownx.tasklist:
 | 
			
		||||
@@ -51,6 +48,9 @@ markdown_extensions:
 | 
			
		||||
  - pymdownx.details
 | 
			
		||||
  - admonition
 | 
			
		||||
  - tables
 | 
			
		||||
  - pymdownx.superfences
 | 
			
		||||
  - pymdownx.tabbed:
 | 
			
		||||
      alternate_style: true
 | 
			
		||||
  - toc:
 | 
			
		||||
      permalink: "#"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user