Add color to nose2 output
Asked Answered
S

1

11

This is such a simple question, but I can't find it anywhere... how do I add color to the output of running tests with nose2? For example, I would like failures to show up as red.

Selectman answered 1/8, 2014 at 19:49 Comment(0)
L
4

nose2 does not have colored output built in, but a popular third-party plugin named green will color the output for you.

It can easily be installed with pip via : pip3 install green

You can find more information on it within it's pypi page here: https://pypi.python.org/pypi/green

Their GitHub page as well: https://github.com/CleanCut/green

Lifeanddeath answered 17/5, 2016 at 20:23 Comment(1)
green is not a nose2 plugin, it's a completely different program which does not support the same things nose(2) does.Stamata

© 2022 - 2024 — McMap. All rights reserved.