readlines
Version:
Read file line as array
39 lines (31 loc) • 725 B
Plain Text
TESTS = $(shell find test -type f -name "*.js")
TIMEOUT = 5000
MOCHA_OPTS =
install:
@npm install
test: install jshint
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
--timeout $(TIMEOUT) \
$(MOCHA_OPTS) \
$(TESTS)
test-cov:
@NODE_ENV=test node \
./node_modules/.bin/istanbul cover \
./node_modules/mocha/bin/_mocha \
-- -u exports \
--timeout $(TIMEOUT) \
$(MOCHA_OPTS) \
$(TESTS)
test-travis:
@NODE_ENV=test node \
./node_modules/.bin/istanbul cover \
./node_modules/mocha/bin/_mocha \
--report lcovonly \
-- -u exports \
--timeout $(TIMEOUT) \
$(MOCHA_OPTS) \
$(TESTS)
jshint:
node_modules/.bin/jshint .
test-all: test test-cov