Skip to main content

The colors Struct Reference

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

Declaration

struct micro_os_plus::micro_test_plus::colors

Included Headers

#include <test-reporter.h>

Public Member Attributes Index

const char *fail = "\\033[31m"

Red colour. More...

const char *none = "\\033[0m"

Default colour. More...

const char *pass = "\\033[32m"

Green colour. More...

Description

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

The colors 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 106 of file test-reporter.h.

Public Member Attributes

fail

const char* micro_os_plus::micro_test_plus::colors::fail = "\\033[31m"

Red colour.

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

Definition at line 110 of file test-reporter.h.

none

const char* micro_os_plus::micro_test_plus::colors::none = "\\033[0m"

Default colour.

ANSI escape sequence to reset the terminal colour to default.

Definition at line 108 of file test-reporter.h.

pass

const char* micro_os_plus::micro_test_plus::colors::pass = "\\033[32m"

Green colour.

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

Definition at line 109 of file test-reporter.h.


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


Generated via docusaurus-plugin-doxygen by Doxygen 1.14.0.