Makefile 444 B

1234567891011121314151617181920212223
  1. TESTS = test/*.js
  2. BENCHMARKS = $(shell find bench -type f ! -name 'runner.js')
  3. REPORTER = dot
  4. test:
  5. @./node_modules/.bin/mocha \
  6. --reporter $(REPORTER) \
  7. --slow 500ms \
  8. --bail \
  9. --globals ___eio,document \
  10. $(TESTS)
  11. test-cov: lib-cov
  12. EIO_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
  13. lib-cov:
  14. jscoverage --no-highlight lib lib-cov
  15. bench:
  16. @node $(PROFILEFLAGS) bench/runner.js $(BENCHMARKS)
  17. .PHONY: test test-cov bench