mocha-cta-reporter

0.0.14 • Public • Published

Brought to you by @Vladimir-Clausse and @michelsalib from an initial contribution by @kiettisak-angkanawin.

NPM version

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

Readme

Keywords

Package Sidebar

Install

npm i mocha-cta-reporter

Weekly Downloads

11

Version

0.0.14

License

none

Last publish

Collaborators

  • michelsalib