Yet Another Plugin Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
532 B

MOCHA_OPTS = --check-leaks
REPORTER = spec
clean:
@rm -f coverage.html
@rm -rf lib-cov
test:
@NODE_ENV=test ./node_modules/.bin/mocha --ui tdd --reporter $(REPORTER) $(MOCHA_OPTS)
test-cov: lib-cov
@YAPS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
test-coveralls: lib-cov
echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@YAPS_COV=1 $(MAKE) test REPORTER=mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
$(MAKE) clean
lib-cov:
@./node_modules/.bin/jscoverage lib lib-cov
.PHONY: clean lib-cov test test-cov