UNPKG

trinte-creator

Version:
37 lines (26 loc) 913 B
MOCHA_RUN = $(MOCHA) -r should -R $(MOCHA_REPORTER) MOCHA_WATCH = $(MOCHA) -r should -R $(MOCHA_REPORTER) -w MOCHA_COV = $(ISTANBUL) cover $(MOCHA) -- -r should -u exports -R spec JSHINT = $(which jshint) JS_FILES = $(shell find . -type f -name "*.js" \ -not -path "./node_modules/*" -and \ -not -path "./coverage/*" -and \ -not -path "./support/*" -and \ -not -path "./public/vendor/" -and \ -not -path "./test/*") check: @jshint $(JS_FILES) test: test-units test-models test-units: @NODE_ENV=test $(MOCHA) test/units -r should -R $(MOCHA_REPORTER) test-models: @NODE_ENV=test $(MOCHA) test/models -r should -R $(MOCHA_REPORTER) test-controllers: @NODE_ENV=test $(MOCHA) test/controllers -r should -R $(MOCHA_REPORTER) test-watch: @NODE_ENV=test $(MOCHA_WATCH) test-cov: clear @NODE_ENV=test $(MOCHA_COV) clear: @rm -rf coverage .PHONY: test test-units test-models