mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
Updated docs with new [!throws] behaviour
This commit is contained in:
parent
20cad7cb1d
commit
94f47d5f8c
@ -126,6 +126,8 @@ Skips all assertions that test that an exception is thrown, e.g. ```REQUIRE_THRO
|
||||
|
||||
These can be a nuisance in certain debugging environments that may break when exceptions are thrown (while this is usually optional for handled exceptions, it can be useful to have enabled if you are trying to track down something unexpected).
|
||||
|
||||
Sometimes exceptions are expected outside of one of the assertions that tests for them (perhaps thrown and caught within the code-under-test). The whole test case can be skipped when using ```-e``` by marking it with the ```[!throws]``` tag.
|
||||
|
||||
When running with this option any throw checking assertions are skipped so as not to contribute additional noise. Be careful if this affects the behaviour of subsequent tests.
|
||||
|
||||
<a id="warnings"></a>
|
||||
|
Loading…
Reference in New Issue
Block a user