-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
39 lines (33 loc) · 1.11 KB
/
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
36
37
38
# TESTS
TESTER = ./node_modules/.bin/mocha
OPTS = --growl --ignore-leaks --timeout 30000
TESTS = test/*.test.js
INTEGRATION = test/*.integration.js
JSHINT = ./node_modules/.bin/jshint
JS_FILES = $(shell find . -type f -name "*.js" \
-not -path "./node_modules/*" -and \
-not -path "./broker/*" -and \
-not -path "./coverage/*" -and \
-not -path "./dev/*" -and \
-not -path "./vendor/*" -and \
-not -path "./broker/*" -and \
-not -path "./public/_js/*" -and \
-not -path "./config/database.js" -and \
-not -path "./public/js/*.js" -and \
-not -path "./newrelic.js" -and \
-not -path "./db/schema.js")
check:
@$(JSHINT) $(JS_FILES) && echo 'Those who know do not speak. Those who speak do not know.'
test:
$(TESTER) $(OPTS) $(TESTS)
test-verbose:
$(TESTER) $(OPTS) --reporter spec $(TESTS)
test-integration:
$(TESTER) $(OPTS) --reporter spec $(INTEGRATION)
test-full:
$(TESTER) $(OPTS) --reporter spec $(TESTS) $(INTEGRATION)
testing:
$(TESTER) $(OPTS) --watch $(TESTS)
features:
NODE_ENV=test node_modules/.bin/cucumber.js
.PHONY: test doc docs features