mocha-reporter-badge

0.1.0 • Public • Published

mocha-reporter-badge

Build status

A simple mocha reporter that produces a badge inspired by shields.io

For example the following badge is self served by this project, not by any service provider.

Mocha tests status

Install

npm install mocha-reporter-badge

usage

mocha --reporter mocha-reporter-badge > badge.svg

You can configure it using environment variables, for example:

export MOCHA_BADGE_SUBJECT=lint
export MOCHA_BADGE_OK_COLOR=green
export MOCHA_BADGE_KO_COLOR=orange
export MOCHA_BADGE_STYLE=flat

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    69
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    69

Package Sidebar

Install

npm i mocha-reporter-badge

Weekly Downloads

11

Version

0.1.0

License

MIT

Last publish

Collaborators

  • alban