Colorizing

marick edited this page Feb 26, 2013 · 7 revisions
Clone this wiki locally

Midje and Lein-midje obey the MIDJE_COLORIZE environment variable. It can take three values

  • true

    This turns coloring on. Failures are in red. Future facts are in cyan. Lein-midje colors summary lines either red or green so that you can easily check whether all facts passed or some failed. See the tutorial for examples.

  • false

    This turns coloring off.

  • reverse

    This colors the background behind the letters, rather than the letters themselves. That can be more readable if you use dark text on a light background.

On Unix systems, the default is true. On Windows systems, it's false. (By default, the Windows shell doesn't obey ANSI terminal control characters. This article may help you change that default, though it's rather out of date.)