-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 660 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (24 loc) · 660 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
MOCHA = ./node_modules/.bin/mocha
REPORTER = spec
REQUIRE = should
test:
@NODE_ENV=test $(MOCHA) \
--require $(REQUIRE) \
--reporter $(REPORTER)
test-nc:
@NODE_ENV=test $(MOCHA) \
--require $(REQUIRE) \
--reporter $(REPORTER) \
--no-colors
test-w:
@NODE_ENV=test $(MOCHA) \
--require $(REQUIRE) \
--reporter min \
--bail \
--watch
test-cov:
@rm -rf .coverage
@mkdir -p .coverage
@jscoverage --exclude=cli-runner.js lib .coverage/lib
@COLOR_DIFFERENCE_COVERAGE=1 $(MAKE) --silent test REPORTER=html-cov > .coverage/index.html
.PHONY: test test-w test-cov