koa-lite/Makefile

41 lines
702 B
Makefile
Raw Normal View History

2013-08-17 07:15:57 +00:00
SRC = lib/*.js
include node_modules/make-lint/index.mk
2014-07-05 16:49:11 +00:00
TESTS = test/application \
test/context/* \
test/request/* \
test/response/*
2013-08-17 07:15:57 +00:00
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--require should \
--harmony-generators \
2014-07-05 16:49:11 +00:00
$(TESTS) \
--bail
test-cov:
@NODE_ENV=test node --harmony-generators \
node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
-- -u exports \
--require should \
$(TESTS) \
--bail
test-travis:
@NODE_ENV=test node --harmony-generators \
node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
--report lcovonly \
-- -u exports \
--require should \
$(TESTS) \
2013-08-17 07:15:57 +00:00
--bail
bench:
@$(MAKE) -C benchmarks
.PHONY: test bench