Detalhes do pacote

mocha-silent-reporter

conradz9.5kBSD1.0.0

Reporter that only logs on failure

mocha, reporter, test

readme (leia-me)

mocha-silent-reporter

A minimal reporter for Mocha that is silent when tests pass. Ideal for use with mocha --watch.

npm install --save-dev mocha-silent-reporter
mocha -R mocha-silent-reporter <options>

This reporter only outputs information about test failures. This works great for automated running such as when watching the test files so as to not get the n tests passed message everytime a file changes. When tests fail it will output the test name, source file, and error stack.