1.1.0 • Published 2 years ago

mocha-github-reporter v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

mocha-github-reporter

npm David David code style standard license

Delivering mocha results from CI to Github. 📋

Install

$ npm install --save-dev mocha-github-reporter

Usage

Setup environment variables.

ENVIRONMENT VARIABLEEXAMPLE
GITHUB_ACCESS_TOKENXXXXX
GITHUB_REPO_SLUGscriptnull/mocha-github-reporter
REPORT_TITLEMocha report for Build $BUILD_NUMBER
REPORT_ALWAYStrue
REPORT_FORMATTERall-suites (default). See below for more.

Run mocha.

$ mocha --reporter mocha-github-reporter tests/

Reports

Any one of the following report formats could be setup by specifying it as REPORT_FORMATTER environment variable.

all-suites

Resembles default mocha reporting. all-suites

all-suites-emoji

emoji can be configured via PASSED_EMOJI and FAILED_EMOJI environment variables. Example: FAILED_EMOJI='poop' all-suites-emoji

failed-checklist

Suited to be used as a checklist for sending PR fixes. failed-checklist

Contribute

  • Bug fixes.
  • Adding new formatters.

Open issue to discuss more.

Thanks

"Thanks for taking time to evaluate mocha-github-reporter. It means a lot to this project. I hope that, this project takes you one step closer to a supercharged workflow" - scriptnull

1.1.0

2 years ago

1.0.0

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago