mirror of
https://github.com/strapi/strapi.git
synced 2025-11-30 00:51:06 +00:00
36 lines
564 B
Makefile
36 lines
564 B
Makefile
|
|
SRC = lib/*.js
|
||
|
|
|
||
|
|
include node_modules/make-lint/index.mk
|
||
|
|
|
||
|
|
BIN = node
|
||
|
|
|
||
|
|
REQUIRED = --require should --require should-http
|
||
|
|
|
||
|
|
TESTS = test/application/* \
|
||
|
|
test/context/* \
|
||
|
|
test/request/* \
|
||
|
|
test/response/* \
|
||
|
|
test/middlewares/*
|
||
|
|
|
||
|
|
test:
|
||
|
|
@NODE_ENV=test $(BIN) \
|
||
|
|
./node_modules/.bin/_mocha \
|
||
|
|
$(REQUIRED) \
|
||
|
|
$(TESTS) \
|
||
|
|
--bail
|
||
|
|
|
||
|
|
test-travis:
|
||
|
|
@NODE_ENV=test $(BIN) \
|
||
|
|
./node_modules/.bin/istanbul cover \
|
||
|
|
./node_modules/.bin/_mocha \
|
||
|
|
--report lcovonly \
|
||
|
|
-- -u exports \
|
||
|
|
$(REQUIRED) \
|
||
|
|
$(TESTS) \
|
||
|
|
--bail
|
||
|
|
|
||
|
|
bench:
|
||
|
|
@$(MAKE) -C benchmarks
|
||
|
|
|
||
|
|
.PHONY: test bench
|