Add color to nose2 output

800 Views Asked by At

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.

1

There are 1 best solutions below

1
On

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