karma-env-reporter
v1.0.13
Published
ci/dev environment aware karma reporter
Downloads
40
Readme
karma-env-reporter
A karma reporter that switches output format between spec and teamcity base on where tests are being executed - locally or ci. Actual switch is environment variable IS_BUILD_AGENT
. Given environment variable IS_BUILD_AGENT
. If it is set, 'teamcity' is used and 'spec' otherwise.
install
npm install --save-dev karma-env-reporter
usage
In you package.json append --reporters env
to your karma test command, ex.
...
"scripts": {
"test": "karma --reporters env"
},
...
License
We use a custom license, see LICENSE.md