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.

23 lines
444 B

  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