module Cucumber::Formatter::ANSIColor

Defines aliases for coloured output. You donโ€™t invoke any methods from this module directly, but you can change the output colours by defining a CUCUMBER_COLORS variable in your shell, very much like how you can tweak the familiar POSIX command ls with <a href=โ€œmipsisrisc.com/rambling/2008/06/27/lscolorsls_colors-now-with-linux-support/โ€>$LSCOLORS/$LS_COLORS</a>

The colours that you can change are:

For instance, if your shell has a black background and a green font (like the โ€œHomebrewโ€ settings for OS Xโ€™ Terminal.app), you may want to override passed steps to be white instead of green.

Although not listed, you can also use grey.

Examples: (On Windows, use SET instead of export.)

export CUCUMBER_COLORS="passed=white"
export CUCUMBER_COLORS="passed=white,bold:passed_param=white,bold,underline"

To see what colours and effects are available, just run this in your shell:

ruby -e "require 'rubygems'; require 'term/ansicolor'; puts Cucumber::Term::ANSIColor.attributes"