micro-test-plus 4.1.0
µTest++ Testing Framework
Loading...
Searching...
No Matches
micro_os_plus::micro_test_plus::detail::colours Struct Reference

Colours used to highlight pass and fail results in test reports. More...

#include <expression-formatter.h>

Public Attributes

const char * fail = ""
 Terminal colour sequence for failing tests.
const char * none = ""
 Terminal colour reset sequence.
const char * pass = ""
 Terminal colour sequence for passing tests.

Detailed Description

The colours structure defines ANSI escape sequences for terminal output, enabling colour-coded highlighting of test outcomes. The pass member specifies the colour for successful results (typically green), while the fail member specifies the colour for failed results (typically red). The none member resets the colour to the terminal default.

These colour codes enhance the clarity and professionalism of test reports by making it immediately apparent which tests have passed or failed, thereby improving the overall user experience when reviewing test results.

Definition at line 114 of file expression-formatter.h.

Member Data Documentation

◆ fail

const char* micro_os_plus::micro_test_plus::detail::colours::fail = ""

ANSI escape sequence to set the terminal colour for failing results (red).

Definition at line 119 of file expression-formatter.h.

◆ none

const char* micro_os_plus::micro_test_plus::detail::colours::none = ""

ANSI escape sequence to reset the terminal colour to default.

Definition at line 116 of file expression-formatter.h.

◆ pass

const char* micro_os_plus::micro_test_plus::detail::colours::pass = ""

ANSI escape sequence to set the terminal colour for passing results (green).

Definition at line 117 of file expression-formatter.h.


The documentation for this struct was generated from the following file: