forked from codeforboston/pantry_pickup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (30 loc) · 793 Bytes
/
Makefile
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
34
35
INTEGRATION_TESTS = test/integration/*-test.js
UNIT_TESTS = test/unit/*-test.js
ALL_TESTS = test/*/*.js
REPORTER = dot
test:
@NODE_ENV=test ./node_modules/.bin/mocha --no-print-directory \
--require should \
--reporter $(REPORTER) \
--timeout 2000 \
--growl \
$(ALL_TESTS)
test-integration:
@NODE_ENV=test ./node_modules/.bin/mocha --no-print-directory \
--require should \
--reporter $(REPORTER) \
--timeout 2000 \
--growl \
$(INTEGRATION_TESTS)
test-unit:
@NODE_ENV=test ./node_modules/.bin/mocha --no-print-directory \
--require should \
--reporter $(REPORTER) \
--timeout 2000 \
--growl \
$(UNIT_TESTS)
test-docs:
@make test REPORTER=doc --no-print-directory \
| cat docs/helpers/head.html - docs/helpers/tail.html \
> docs/test.html
.PHONY: test