Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Latest commit

 

History

History
35 lines (24 loc) · 1.08 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.08 KB

Code Climate

A Mocha browser reporter that draws a line of dots and “F”s. To use it, say:

mocha.reporter(HTMLDotReporter);

Use CSS to style pre, pre .success, pre .failure, pre .end, and pre .failure-detail inside #mocha to style pieces.

Here is a sample output:

..........................................................F....................
...............................................................................
...............................................................................
....
240 of 241 passed

The smoke test fails:
expected 'this failing test' to not exist

test run time: 0.016s

Installation

npm install mocha-html-dot-reporter

or

curl https://raw.githubusercontent.com/gurdiga/mocha-html-dot-reporter/latest-release/index.js > mocha-html-dot-reporter.js

Tests

Yes, this is a test reporter that has tests itself! 8-) Just open tests.html in the browser.