File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ node_modules
3
3
. * .swp
4
4
.lock- *
5
5
build
6
+ coverage
6
7
7
8
builderror.log
Original file line number Diff line number Diff line change 1
1
ALL_TESTS = $(shell find test/ -name '* .test.js')
2
2
ALL_INTEGRATION = $(shell find test/ -name '* .integration.js')
3
3
4
- all :
5
- node-gyp configure build
6
-
7
- clean :
8
- node-gyp clean
9
-
10
4
run-tests :
11
5
@./node_modules/.bin/mocha \
12
6
-t 5000 \
@@ -21,12 +15,23 @@ run-integrationtests:
21
15
$(TESTFLAGS ) \
22
16
$(TESTS )
23
17
18
+ run-coverage :
19
+ @./node_modules/.bin/istanbul cover --report html \
20
+ ./node_modules/.bin/_mocha -- \
21
+ -t 5000 \
22
+ -s 6000 \
23
+ $(TESTFLAGS ) \
24
+ $(TESTS )
25
+
24
26
test :
25
27
@$(MAKE ) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS=" $( ALL_TESTS) " run-tests
26
28
27
29
integrationtest :
28
30
@$(MAKE ) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS=" $( ALL_INTEGRATION) " run-integrationtests
29
31
32
+ coverage :
33
+ @$(MAKE ) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS=" $( ALL_TESTS) " run-coverage
34
+
30
35
benchmark :
31
36
@node bench/sender.benchmark.js
32
37
@node bench/parser.benchmark.js
@@ -37,4 +42,4 @@ autobahn:
37
42
autobahn-server :
38
43
@NODE_PATH=lib node test/autobahn-server.js
39
44
40
- .PHONY : test
45
+ .PHONY : test coverage
Original file line number Diff line number Diff line change 30
30
"benchmark" : " 0.3.x" ,
31
31
"bufferutil" : " 1.2.x" ,
32
32
"expect.js" : " 0.3.x" ,
33
+ "istanbul" : " ^0.4.1" ,
33
34
"mocha" : " 2.3.x" ,
34
35
"should" : " 8.0.x" ,
35
36
"tinycolor" : " 0.0.x" ,
You can’t perform that action at this time.
0 commit comments