TESTS = test/*.test.js REPORTER = tap TIMEOUT = 3000 MOCHA_OPTS = install: @npm install --registry=http://registry.cnpmjs.org \ --disturl=http://cnpmjs.org/dist test: @NODE_ENV=test ./node_modules/mocha/bin/mocha \ --harmony-generators \ --reporter $(REPORTER) \ --timeout $(TIMEOUT) \ --require should \ $(MOCHA_OPTS) \ $(TESTS) test-cov: @NODE_ENV=test node --harmony \ node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha \ -- -u exports \ --reporter $(REPORTER) \ --timeout $(TIMEOUT) \ --require should \ $(MOCHA_OPTS) \ $(TESTS) @-$(MAKE) check-coverage check-coverage: @./node_modules/.bin/istanbul check-coverage \ --statements 95 \ --functions 95 \ --branches 90 \ --lines 95 cov: @./node_modules/.bin/cov coverage autod: @./node_modules/.bin/autod -w -e example --prefix=~ --keep=supertest @$(MAKE) install .PHONY: test