Skip to content
Laverne Schrock edited this page Apr 2, 2019 · 9 revisions

Setting color via environment variable

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.)

Setting color via config

See the :colorize setting in the config wiki page.

If the MIDJE_COLORIZE environment variable is set, it will take precedence over the value set in the configuration.

Clone this wiki locally