Skip to content

Konnektid/konnektid-mocha-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }
}

About

Environment aware Mocha reporter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published