snitch-org / snitch

Lightweight C++20 testing framework.
Boost Software License 1.0
268 stars 10 forks source link

Default reporter: line jump may be missed if failure message exceeds maximum message length #82

Closed cschreib closed 1 year ago

cschreib commented 1 year ago

With the default reporter only. If a test failure generates a message of length exceeding SNITCH_MAX_MESSAGE_LENGTH, the message is truncated. This is the expected behavior, except that currently the truncation can remove the end-of-line character, which then corrupts the terminal output. It can also remove reset-color markers, which means that coloring can leak to the next message.