File tree Expand file tree Collapse file tree 1 file changed +12
-25
lines changed Expand file tree Collapse file tree 1 file changed +12
-25
lines changed Original file line number Diff line number Diff line change 1
1
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
12
5
13
6
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 )
24
14
25
15
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 )
30
17
31
- .PHONY : test bench profile
18
+ .PHONY : test bench
You can’t perform that action at this time.
0 commit comments