Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 660 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 660 Bytes

konnektid-mocha-reporter

A environment aware test reporter for Mocha. Uses the default Mocha spec reporter for development, and switches to tap output when it detects a CI environment.

Specifically detects if the BUILD_NUMBER env variable was set.

Install

npm install --save-dev konnektid/konnektid-mocha-reporter

Usage

Add the new reporter to your mocha options using the --reporter (or -R) flag:

_mocha --reporter konnektid-mocha-reporter

Or when defined in your package.json file:

{
    (...)
    "scripts": {
        "test": "mocha -R konnektid-mocha-reporter"
    }
}