2014-05-16 16:23:00 +00:00
|
|
|
SRC = lib/*.js
|
|
|
|
|
2015-05-24 09:08:20 +00:00
|
|
|
REQUIRED = --require should --require should-http
|
|
|
|
|
2015-10-12 04:59:30 +00:00
|
|
|
TESTS = test/application/* \
|
2014-07-05 16:49:11 +00:00
|
|
|
test/context/* \
|
|
|
|
test/request/* \
|
2017-02-25 06:05:25 +00:00
|
|
|
test/response/*
|
2014-07-05 16:49:11 +00:00
|
|
|
|
2015-10-12 20:35:07 +00:00
|
|
|
lint:
|
2017-03-14 08:54:14 +00:00
|
|
|
@./node_modules/.bin/eslint benchmarks lib test --fix
|
2015-10-12 20:35:07 +00:00
|
|
|
|
2013-08-17 07:15:57 +00:00
|
|
|
test:
|
2015-10-11 06:43:45 +00:00
|
|
|
@NODE_ENV=test node \
|
2015-02-04 00:27:45 +00:00
|
|
|
./node_modules/.bin/_mocha \
|
2015-05-24 09:08:20 +00:00
|
|
|
$(REQUIRED) \
|
2014-07-05 16:49:11 +00:00
|
|
|
$(TESTS) \
|
|
|
|
--bail
|
|
|
|
|
|
|
|
test-cov:
|
2015-10-11 06:43:45 +00:00
|
|
|
@NODE_ENV=test node \
|
2015-02-04 00:27:45 +00:00
|
|
|
./node_modules/.bin/istanbul cover \
|
2014-07-05 16:49:11 +00:00
|
|
|
./node_modules/.bin/_mocha \
|
|
|
|
-- -u exports \
|
2015-05-24 09:08:20 +00:00
|
|
|
$(REQUIRED) \
|
2014-07-05 16:49:11 +00:00
|
|
|
$(TESTS) \
|
|
|
|
--bail
|
|
|
|
|
2015-10-12 20:35:07 +00:00
|
|
|
test-travis: lint
|
2015-10-11 06:43:45 +00:00
|
|
|
@NODE_ENV=test node \
|
2015-02-04 00:27:45 +00:00
|
|
|
./node_modules/.bin/istanbul cover \
|
2014-07-05 16:49:11 +00:00
|
|
|
./node_modules/.bin/_mocha \
|
|
|
|
--report lcovonly \
|
|
|
|
-- -u exports \
|
2015-05-24 09:08:20 +00:00
|
|
|
$(REQUIRED) \
|
2014-07-05 16:49:11 +00:00
|
|
|
$(TESTS) \
|
2013-08-17 07:15:57 +00:00
|
|
|
--bail
|
|
|
|
|
|
|
|
bench:
|
|
|
|
@$(MAKE) -C benchmarks
|
|
|
|
|
2015-10-12 20:35:07 +00:00
|
|
|
.PHONY: lint test bench
|