socketioMEANseed/server/node_modules/ws/Makefile
server/node_modules/ws/MakefileRaw
1ALL_TESTS = $(shell find test/ -name '*.test.js')
2ALL_INTEGRATION = $(shell find test/ -name '*.integration.js')
3
4run-tests:
5 @./node_modules/.bin/mocha \
6 -t 5000 \
7 -s 2400 \
8 $(TESTFLAGS) \
9 $(TESTS)
10
11run-integrationtests:
12 @./node_modules/.bin/mocha \
13 -t 5000 \
14 -s 6000 \
15 $(TESTFLAGS) \
16 $(TESTS)
17
18run-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
26test:
27 @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests
28
29integrationtest:
30 @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_INTEGRATION)" run-integrationtests
31
32coverage:
33 @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_TESTS)" run-coverage
34
35benchmark:
36 @node bench/sender.benchmark.js
37 @node bench/parser.benchmark.js
38
39autobahn:
40 @NODE_PATH=lib node test/autobahn.js
41
42autobahn-server:
43 @NODE_PATH=lib node test/autobahn-server.js
44
45.PHONY: test coverage