Skip to content

Instantly share code, notes, and snippets.

@BlueInkAlchemist
Created May 18, 2018 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BlueInkAlchemist/b759ea47ad16375a20a5a9ce2ee50266 to your computer and use it in GitHub Desktop.
Save BlueInkAlchemist/b759ea47ad16375a20a5a9ce2ee50266 to your computer and use it in GitHub Desktop.
Node Bootstrap Makefile
REPORTER = spec
all: jshint test
test:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter $(REPORTER) --timeout 3000
jshint:
jshint lib examples test index.js
tests: test
tap:
@NODE_ENV=test ./node_modules/.bin/mocha -R tap > results.tap
unit:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive -R xunit > results.xml --timeout 3000
skel:
mkdir examples lib test
touch server.js
npm install mocha chai --save-dev
.PHONY: test tap unit jshint skel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment