This commit is contained in:
alsotang 2014-08-29 14:33:56 +08:00
parent 4272b82a6f
commit 9904853d3f

View File

@ -14,13 +14,13 @@ pretest:
cp config.default.js config.js; \
fi
test: install
test: install pretest
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
--reporter $(MOCHA_REPORTER) \
--timeout $(TEST_TIMEOUT) \
$(TESTS)
test-cov cov: install
test-cov cov: install pretest
@NODE_ENV=test node \
node_modules/.bin/istanbul cover --preserve-comments \
./node_modules/.bin/_mocha \