marick / lein-midje

Leiningen plugin for Midje
MIT License
77 stars 29 forks source link

printing all tests in "lein midje" #52

Closed murtaza52 closed 10 years ago

murtaza52 commented 10 years ago

Hi,

I would like to print the statements of all facts / fact, also the ones that succeed. Is that possible ?

Currently when I run lein midje, it only prints the statements of the ones that fail.

Thanks, Murtaza

marick commented 10 years ago

It is possible, but you'd have to write your own "emitter". What you'd have to do is "subclass" the default emitter (in src/midje/emission/plugins/default.clj) by copying the emission-map. You would add to that map a function that responds to :pass with something other than silence. (See src/midje/emission/api.clj

See https://github.com/marick/Midje/wiki/Customizing-reporting for more