fcs
2025-04-10 0163870d662dc5b7d69ceff977490ede594f7d82
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
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