From 7630535ce91405bab07030b4912c0d584c731151 Mon Sep 17 00:00:00 2001 From: onqtam Date: Mon, 1 May 2017 20:25:09 +0300 Subject: more code coverage --- examples/all_features/test_output/logging.cpp.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'examples/all_features/test_output/logging.cpp.txt') diff --git a/examples/all_features/test_output/logging.cpp.txt b/examples/all_features/test_output/logging.cpp.txt index 72e342f6..2fe5fce9 100644 --- a/examples/all_features/test_output/logging.cpp.txt +++ b/examples/all_features/test_output/logging.cpp.txt @@ -66,6 +66,16 @@ TEST CASE FAILED! threw exception: 0 +=============================================================================== +logging.cpp(0) +TEST CASE: a test case that will end from an exception and should print the unprinted context + +TEST CASE FAILED! +threw exception: + 0 +with context: + should be printed even if an exception is thrown and no assert fails before that + =============================================================================== logging.cpp(0) TEST CASE: third party asserts can report failures to doctest @@ -94,6 +104,6 @@ logging.cpp(0) FATAL ERROR! fail the test case and also end it =============================================================================== -[doctest] test cases: 5 | 0 passed | 5 failed | +[doctest] test cases: 6 | 0 passed | 6 failed | [doctest] assertions: 6 | 0 passed | 6 failed | Program code. -- cgit v1.2.3