core.reporting¶
General test progress and result reporting support.
Module Members¶
putErrorStack()
Classes¶
-
class
core.reporting.
WriteBuffer
(**kwargs)¶ Buffer for styled writes until a flush is forced.
This supports ‘rich’ output; i.e. each write includes a style attribute, which is stored alongside the buffered text, This class does not interpret the style.
Subclasses:
Terminal
cstest.core.log.Logger-
addstr
(text, style=None) Add a styled string to the write buffer.
Arguments
- text
- A string.
- style
- A style name as defined in the
colours
module.
-
extractCleanedWriteBuf
() Extract buffer with empty trailing lines removed.
-