This plugin incorporates ideas from the implementation of pytest-rich and takes inspiration from the output style of nextest.
With the plugin currently outputs this:
On a terminal the output is sized to fit it. When there is no terminal to
measure — CI logs, pipes, tee — the width is read from COLUMNS, or from
PYTEST_MODERN_WIDTH to set it without affecting other tools, falling back to
200 columns when neither is set.
COLUMNS=140 pytest