karma-cta-reporter
v0.0.4
Published
CTA reporter for Karma
Downloads
5
Readme
Brought to you by @michelsalib.
###Install
npm install --save-dev karma-cta-reporter
###Usage
mocha --reporters cta
###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 | | gitlabRepo | id of the gitlab repo | | sha | The hash of the commit | | proxy | An optional proxy it should use to connect to github API | | ctaUrl | The url github should reference back to when displaying the test status |
Example:
karma start --reporters cta --accessToken=myaccesstoken --githubRepo=thomsonreuters/news-jet-plugin --sha=abcdefg --proxy=http://webproxy.lon.corp.services:80 --ctaUrl=https://compass.thomsonreuters.com/test/#/run/132456789