mocha-cta-reporter
v0.0.14
Published
CTA reporter for Mocha
Downloads
11
Readme
Brought to you by @Vladimir-Clausse and @michelsalib from an initial contribution by @kiettisak-angkanawin.
###Install
npm install --save-dev mocha-cta-reporter
###Usage
mocha --reporter mocha-cta-reporter --no-exit
The --no-exit flag is important, as the reporter works asynchronously mocha should not stop it.
###Configuration
You can provide additional configuration to the reporter so it additionally report the test status to Github:
| key | description | |---|---| | accessToken | access token so it can connect to github API, it needs at least repo write access | | githubRepo | name of the github repo | | sha | The hash of the commit | | proxy | An optional proxy it should use to connect to github API | | url | The url github should reference back to when displaying the test status |
Example:
mocha --no-exit -R mocha-cta-reporter -O accessToken=myaccesstoken,githubRepo=thomsonreuters/news-services,sha=abcdefg,proxy=http://webproxy.lon.corp.services:80,url=https://compass.thomsonreuters.com/test/#/run/132456789