Snaipe / Criterion

A cross-platform C and C++ unit testing framework for the 21st century
MIT License
2.02k stars 181 forks source link

Log Messages #214

Open osiniecki opened 7 years ago

osiniecki commented 7 years ago

I am not seeing any log messages. As a sanity check, I tried only running the log sample. criterion_tests.log contents:

TAP version 13
1..2
# Criterion v2.3.2

# Running 2 tests from logging
ok - logging::simple  (0.00s)
PASS: criterion_tests 1 - logging::simple  (0.00s)
ok - logging::format  (0.00s)
PASS: criterion_tests 2 - logging::format  (0.00s)

I am stumped. Help would be greatly appreciated!

Snaipe commented 7 years ago

log messages are not part of any output report, as we don't store these (and they technically are there for informative purposes, though one can argue about that for e.g. error & warning messages). Thus, they are only visible when logging is active, i.e. when not running tests in quiet mode.

I guess we could store these messages, but I have concerns about storing every diagnostic message in the runner, esp. if a test manages to make it run out of memory and crash.