Last change
on this file since 536 was
484,
checked in by hendrikvanantwerpen, 11 years ago
|
Commit node_modules, to make checkouts and builds more deterministic.
|
File size:
558 bytes
|
Line | |
---|
1 | |
---|
2 | MOCHA_OPTS= --check-leaks |
---|
3 | REPORTER = dot |
---|
4 | |
---|
5 | check: test |
---|
6 | |
---|
7 | test: test-unit test-acceptance |
---|
8 | |
---|
9 | test-unit: |
---|
10 | @NODE_ENV=test ./node_modules/.bin/mocha \ |
---|
11 | --reporter $(REPORTER) \ |
---|
12 | $(MOCHA_OPTS) |
---|
13 | |
---|
14 | test-acceptance: |
---|
15 | @NODE_ENV=test ./node_modules/.bin/mocha \ |
---|
16 | --reporter $(REPORTER) \ |
---|
17 | --bail \ |
---|
18 | test/acceptance/*.js |
---|
19 | |
---|
20 | test-cov: lib-cov |
---|
21 | @EXPRESS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html |
---|
22 | |
---|
23 | lib-cov: |
---|
24 | @jscoverage lib lib-cov |
---|
25 | |
---|
26 | benchmark: |
---|
27 | @./support/bench |
---|
28 | |
---|
29 | clean: |
---|
30 | rm -f coverage.html |
---|
31 | rm -fr lib-cov |
---|
32 | |
---|
33 | .PHONY: test test-unit test-acceptance benchmark clean |
---|
Note: See
TracBrowser
for help on using the repository browser.