marick / Midje

Midje provides a migration path from clojure.test to a more flexible, readable, abstract, and gracious style of testing
MIT License
1.69k stars 129 forks source link

midje.config/with-augmented-config isn't honored by midje.emission.colorize #458

Closed lverns closed 5 years ago

lverns commented 5 years ago

Given the following test, in a project that has no .midje.clj

(ns midje-demo.core-test
  (:require [midje.sweet :refer :all]))

(fact "FIXME, I fail."
      true => false)

Then (midje.repl/load-facts) prints to stdout with color, as does (midje.config/with-augmented-config {:colorize false} (midje.repl/load-facts))

Adding a .midje.clj with

(change-defaults :colorize false)

eliminates the colorization as desired.