forked from evaletolab/karibou-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (22 loc) · 621 Bytes
/
Makefile
File metadata and controls
33 lines (22 loc) · 621 Bytes
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
REPORTER ?= dot
SRC = $(shell find lib -name "*.js" -type f | sort)
SUPPORT = $(wildcard support/*.js)
test: test-unit
test-all: test-unit
test-unit:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
test/*.js
clean:
rm -fr lib-cov
rm -f coverage.html
test-cov: lib-cov
@COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
lib-cov:
@rm -fr ./$@
@jscoverage models $@
coverage:
jscoverage --no-highlight lib lib-cov
@NODE_ENV=test EXAMPLE_COV=1 ./node_modules/.bin/mocha -R html-cov > coverage.html
rm -rf lib-cov
.PHONY: test-cov test test-all test-unit clean test-cov lib-cov