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.
|
|
|
TESTS = test/*.js
|
|
BENCHMARKS = $(shell find bench -type f ! -name 'runner.js')
|
|
REPORTER = dot
|
|
|
|
test:
|
|
@./node_modules/.bin/mocha \
|
|
--reporter $(REPORTER) \
|
|
--slow 500ms \
|
|
--bail \
|
|
--globals ___eio,document \
|
|
$(TESTS)
|
|
|
|
test-cov: lib-cov
|
|
EIO_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
|
|
|
|
lib-cov:
|
|
jscoverage --no-highlight lib lib-cov
|
|
|
|
bench:
|
|
@node $(PROFILEFLAGS) bench/runner.js $(BENCHMARKS)
|
|
|
|
.PHONY: test test-cov bench
|