aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7f2c31a0543bbb63873c1752c95fd468cb0ceb33 (plain)
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
BASE = .

ISTANBUL = ./node_modules/.bin/istanbul
TEST_COMMAND = NODE_ENV=test ./node_modules/.bin/mocha
COVERAGE_OPTS = --lines 95 --statements 90 --branches 80 --functions 90
BUSTER = ./node_modules/.bin/buster test

main: lint test

cover:
	$(ISTANBUL) cover test/run.js

check-coverage:
	$(ISTANBUL) check-coverage $(COVERAGE_OPTS)

test: cover check-coverage


test-cov: cover check-coverage
	open coverage/lcov-report/index.html

lint:
	./node_modules/jshint/bin/hint ./lib --config $(BASE)/.jshintrc


.PHONY: test