Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mocha with Node: Only show logging for tests that fail

I'm using node with mocha and winston. Is there a way to set it up so it only shows logs for failing tests?

like image 831
Koen Bok Avatar asked Apr 06 '12 17:04

Koen Bok


1 Answers

If you run with the min reporter you will only get full output on failed tests: mocha -R min or, if you prefer the verbose option, mocha --reporter min.

like image 53
Brand Avatar answered Nov 16 '22 03:11

Brand