18 lines
433 B
Makefile
18 lines
433 B
Makefile
|
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:
|
||
|
@$(BIN)/mocha -r cylon --colors $(TEST_FILES)
|
||
|
|
||
|
# Run Mocha, with more verbose BDD reporter.
|
||
|
bdd:
|
||
|
@$(BIN)/mocha -r cylon --colors -R spec $(TEST_FILES)
|
||
|
|
||
|
# Run JSHint
|
||
|
lint:
|
||
|
@$(BIN)/jshint ./lib
|