UNPKG

co-alidayu

Version:

阿里大鱼服务端Node库API,ES6版本

31 lines (24 loc) 708 B
TESTS = test/*.js REPORTER = spec TIMEOUT = 20000 ISTANBUL = ./node_modules/.bin/istanbul MOCHA = ./node_modules/mocha/bin/_mocha COVERALLS = ./node_modules/coveralls/bin/coveralls.js test: @NODE_ENV=test ./node_modules/.bin/mocha \ --harmony \ --reporter $(REPORTER) \ --require co-mocha \ --timeout $(TIMEOUT) \ $(MOCHA_OPTS) \ $(TESTS) test-cov: @$(ISTANBUL) cover --report html $(MOCHA) -- -t $(TIMEOUT) -R spec $(TESTS) test-coveralls: @$(ISTANBUL) cover --report lcovonly $(MOCHA) -- -t $(TIMEOUT) -R spec $(TESTS) @echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID) @cat ./coverage/lcov.info | $(COVERALLS) && rm -rf ./coverage test-all: test test-coveralls dox: @doxmate build .PHONY: test