From 1430b3be0910220029430320d5e8b0e135c9391b Mon Sep 17 00:00:00 2001 From: David Shepherd Date: Fri, 7 Apr 2017 11:00:53 +0100 Subject: [PATCH] Add a note about when logging macros don't work --- docs/logging.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/logging.md b/docs/logging.md index 01c6fbc7..d508ce98 100644 --- a/docs/logging.md +++ b/docs/logging.md @@ -2,6 +2,8 @@ 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 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) \ No newline at end of file +[Home](Readme.md)