Skip to content

albanm/mocha-reporter-badge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published