mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
Add a note about when logging macros don't work
This commit is contained in:
parent
250f0ee7fb
commit
1430b3be09
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
Additional messages can be logged during a test case.
|
Additional messages can be logged during a test case.
|
||||||
|
|
||||||
|
Note that these macros do not log anything unless they are *directly* inside a catch test scope macro (i.e. TEST_CASE, SECTION, GIVEN/WHEN/THEN/...). In particular they cannot be used inside loops or ```if``` statements.
|
||||||
|
|
||||||
## Streaming macros
|
## Streaming macros
|
||||||
|
|
||||||
All these macros allow heterogenous sequences of values to be streaming using the insertion operator (```<<```) in the same way that std::ostream, std::cout, etc support it.
|
All these macros allow heterogenous sequences of values to be streaming using the insertion operator (```<<```) in the same way that std::ostream, std::cout, etc support it.
|
||||||
@ -53,4 +55,4 @@ These macros are now deprecated and are just aliases for INFO and CAPTURE (which
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
[Home](Readme.md)
|
[Home](Readme.md)
|
||||||
|
Loading…
Reference in New Issue
Block a user