Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (44 sloc) 1.08 KB
TESTS = test/*.test.js
REPORTER = tap
TIMEOUT = 3000
MOCHA_OPTS =
install:
@npm install --registry=http://registry.npm.taobao.org
build:
@NODE_ENV=production ./node_modules/babel-cli/bin/babel.js -d lib/ src/
test:
make build;
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
--require should \
--require babel-core/register \
$(MOCHA_OPTS) \
$(TESTS)
test-cov:
make build;
@NODE_ENV=test node \
node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha \
-- -u exports \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
--require should \
--require babel-core/register \
$(MOCHA_OPTS) \
$(TESTS)
test-travis:
make build;
@NODE_ENV=test node \
node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha \
--report lcovonly \
-- -u exports \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
--require should \
--require babel-core/register \
$(MOCHA_OPTS) \
$(TESTS)
autod:
@./node_modules/.bin/autod -w -e example --prefix=~ --keep=supertest,debug, --semver=koa@1
@$(MAKE) install
.PHONY: test
You can’t perform that action at this time.