2014-02-27 22:44:53 +08:00
|
|
|
BIN := ./node_modules/.bin
|
|
|
|
TEST_FILES := test/support/globals.js $(shell find test/specs -type f -name "*.js")
|
|
|
|
|
|
|
|
# Our 'phony' make targets (don't involve any file changes)
|
|
|
|
.PHONY: test bdd lint
|
|
|
|
|
|
|
|
# Run Mocha, with standard reporter.
|
|
|
|
test:
|
2014-02-28 01:41:47 +08:00
|
|
|
@$(BIN)/mocha --colors $(TEST_FILES)
|
2014-02-27 22:44:53 +08:00
|
|
|
|
|
|
|
# Run Mocha, with more verbose BDD reporter.
|
|
|
|
bdd:
|
2014-02-28 01:41:47 +08:00
|
|
|
@$(BIN)/mocha --colors -R spec $(TEST_FILES)
|
2014-02-27 22:44:53 +08:00
|
|
|
|
|
|
|
# Run JSHint
|
|
|
|
lint:
|
|
|
|
@$(BIN)/jshint ./lib
|