Module | Gherkin::Formatter::Colors |
In: |
lib/gherkin/formatter/colors.rb
|
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 GHERKIN_COLORS variable in your shell, very much like how you can tweak the familiar POSIX command ls with <a href="$LSCOLORS/$LS_COLORSmipsisrisc.com/rambling/2008/06/27/lscolorsls_colors-now-with-linux-support/">$LSCOLORS/$LS_COLORS>
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. Examples:
export GHERKIN_COLORS="passed=white" export GHERKIN_COLORS="passed=white,bold:passed_param=white,bold,underline"
(If you‘re on Windows, use SET instead of export). To see what colours and effects are available, just run this in your shell:
ruby -e "require 'rubygems'; require 'term/ansicolor'; puts Term::ANSIColor.attributes"
Although not listed, you can also use grey
ALIASES | = | Hash.new do |h,k| if k.to_s =~ /(.*)_param/ |