-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (34 loc) · 1.62 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Makefile to build and test the correctness engine
#
.DELETE_ON_ERROR :
.PHONY : install update clean test test-spec test-w test-cov test-cov-html test-int test-int-spec tesst-xunit test-xunit-build
install: clean
npm install
update: clean
rm -rf npm-shrinkwrap.json
npm install .
npm shrinkwrap
clean:
npm cache clean
rm -rf node_modules/* coverage lib-test
test:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter tap --timeout 3000 test/unit
test-spec:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter spec --timeout 3000 test/unit
# "Watch" mode runs your tests each time it sees a file change under the base directory.
# The 'tap' reporter seems to play nicest with this and also shows the most complete error messages.
test-w:
@NODE_ENV=test ./node_modules/.bin/mocha --watch --recursive --reporter tap --timeout 3000 test/unit
test-cov:
@NODE_ENV=test ./node_modules/.bin/mocha --require blanket --recursive --timeout 3000 -R travis-cov test/unit
test-cov-html:
@NODE_ENV=test ./node_modules/.bin/mocha --require blanket --recursive --timeout 3000 -R html-cov test/unit > test/coverage.html
test-int:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter tap --timeout 9000 test/integration
test-int-spec:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter spec --timeout 9000 test/integration
test-xunit:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter xunit --timeout 3000 test/unit > test-reports.log.xml
test-xunit-build:
@HOST=build ./node_modules/.bin/mocha --recursive --reporter xunit --timeout 3000 test/unit > test-reports.log.xml