Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
mocha-env-reporter
Advanced tools
A mocha reporter that switches output format between built-in 'spec' and customised CI reporters base on where tests are being executed - locally or ci. Actual switch is implemented by detecting an environment variable unique to each CI environment. The default is 'spec' builtin mocha reporter.
The reporter also supports an environment variable mocha_reporter
in which you can set an arbitrary environment reporter. This is useful if you use an unidentified continous integration service.
Currently supported custom CI environments (see defaults.json
):
npm install --save-dev mocha-env-reporter
In you package.json append --reporter mocha-env-reporter
to your mocha test command, ex.
...
"scripts": {
"test": "mocha --reporter mocha-env-reporter"
},
...
In order to override the choice of reporter simply set environment variable mocha_reporter
to the reporter name (example specs
).
The default reporters per environments are defined at defaults.json
Licensed under MIT License.
FAQs
ci/dev environment aware mocha reporter
The npm package mocha-env-reporter receives a total of 368 weekly downloads. As such, mocha-env-reporter popularity was classified as not popular.
We found that mocha-env-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.