-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (15 loc) · 720 Bytes
/
Makefile
File metadata and controls
21 lines (15 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clean:
rm -rf node_modules/*
install:
npm install
test:
./node_modules/.bin/jshint lib/* --config test/jshint/config.json
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter spec --timeout 3000 test/unit
test-cov:
@NODE_ENV=test ./node_modules/.bin/mocha --require blanket --recursive --timeout 3000 -R travis-cov test/unit
test-lcov:
@NODE_ENV=test ./node_modules/.bin/mocha --require blanket --recursive --timeout 3000 -R mocha-lcov-reporter 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
xdg-open "file://${CURDIR}/test/coverage.html" &
.PHONY: test test-cov test-lcov test-cov-html