mocha-runner

v3.0.1
A simple mocha runner that includes chai, sinon, sinon-chai and chai-fuzzy and accepts a list of globs to run
mocha runner chai chai-sinon integration run specs globs

beautify

esbeautifier 'bin/**/*.js' 'lib/**/*.js' 'specs/**/*.js'

beautify-check

esbeautifier -k 'bin/**/*.js' 'lib/**/*.js' 'specs/**/*.js'

test

node ./bin/runner.js 'specs/**/*.js'

eslint

eslinter 'bin/**/*.js' 'lib/**/*.js' 'specs/**/*.js'

coverage

istanbul cover -x 'specs/**/*.js' ./bin/runner.js 'specs/**/*.js' html text-summary

coverage-cache

istanbul cover -x 'specs/**/*.js' ./bin/runner.js 'specs/**/*.js' html text-summary -- --useCache=true

watch

npm run coverage && watch-spawn -p 'specs/**/*.js' -p 'bin/**/*.js' -p 'lib/**/*.js' npm run coverage-cache

lint

npm run beautify-check && npm run eslint

verify

npm run lint && npm test

autofix

npm run beautify && npm run eslint

changelog

changelogx -f markdown -o ./changelog.md

do-changelog

npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog' --no-verify

install-hooks

prepush install && changelogx install-hook && precommit install

pre-v

npm run verify

post-v

npm run do-changelog && git push --no-verify && git push --tags --no-verify

bump-major

npm run pre-v && npm version major -m 'BLD: Release v%s' && npm run post-v

bump-minor

npm run pre-v && npm version minor -m 'BLD: Release v%s' && npm run post-v

bump-patch

npm run pre-v && npm version patch -m 'BLD: Release v%s' && npm run post-v
npm i mocha-runner

Metadata

  • MIT
  • Whatever
  • Roy Riojas
  • released 7/11/2019

Downloads

Maintainers