Skip to content

Commit bf114dd

Browse files
committed
Refactored Makefile.
1 parent 300ee10 commit bf114dd

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed

Makefile

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,18 @@
11

2-
ALL_TESTS = $(shell find test/ -name '*.test.js')
3-
ALL_BENCH = $(shell find benchmarks -name '*.bench.js')
4-
5-
run-tests:
6-
@./node_modules/.bin/expresso \
7-
-t 3000 \
8-
-I support \
9-
--serial \
10-
$(TESTFLAGS) \
11-
$(TESTS)
2+
TESTS = test/*.js
3+
BENCHMARKS = $(shell find bench -type f ! -name 'runner.js')
4+
REPORTER = dot
125

136
test:
14-
@$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests
15-
16-
test-cov:
17-
@TESTFLAGS=--cov $(MAKE) test
18-
19-
test-leaks:
20-
@ls test/leaks/* | xargs node --expose_debug_as=debug --expose_gc
21-
22-
run-bench:
23-
@node $(PROFILEFLAGS) benchmarks/runner.js
7+
@./node_modules/.bin/mocha \
8+
--require test/common \
9+
--reporter $(REPORTER) \
10+
--slow 500ms \
11+
--bail \
12+
--growl \
13+
$(TESTS)
2414

2515
bench:
26-
@$(MAKE) BENCHMARKS="$(ALL_BENCH)" run-bench
27-
28-
profile:
29-
@PROFILEFLAGS='--prof --trace-opt --trace-bailout --trace-deopt' $(MAKE) bench
16+
@node $(PROFILEFLAGS) bench/runner.js $(BENCHMARKS)
3017

31-
.PHONY: test bench profile
18+
.PHONY: test bench

0 commit comments

Comments
 (0)