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.

33 lines
558 B

  1. MOCHA_OPTS= --check-leaks
  2. REPORTER = dot
  3. check: test
  4. test: test-unit test-acceptance
  5. test-unit:
  6. @NODE_ENV=test ./node_modules/.bin/mocha \
  7. --reporter $(REPORTER) \
  8. $(MOCHA_OPTS)
  9. test-acceptance:
  10. @NODE_ENV=test ./node_modules/.bin/mocha \
  11. --reporter $(REPORTER) \
  12. --bail \
  13. test/acceptance/*.js
  14. test-cov: lib-cov
  15. @EXPRESS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
  16. lib-cov:
  17. @jscoverage lib lib-cov
  18. benchmark:
  19. @./support/bench
  20. clean:
  21. rm -f coverage.html
  22. rm -fr lib-cov
  23. .PHONY: test test-unit test-acceptance benchmark clean