forked from biggora/caminte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (41 loc) · 1.48 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
ISTANBUL = `which istanbul`
MOCHA = `which _mocha`
MOCHA_REPORTER = spec
MOCHA_RUN = $(MOCHA) -r should -R $(MOCHA_REPORTER)
MOCHA_WATCH = $(MOCHA) -r should -R $(MOCHA_REPORTER) -w
MOCHA_COV = $(ISTANBUL) cover $(MOCHA) -- -r should -u exports -R spec
JSHINT = $(which jshint)
check:
@jshint ./lib
test-units:
@NODE_ENV=test $(MOCHA) test/units -r should -R $(MOCHA_REPORTER)
test-models:
@NODE_ENV=test $(MOCHA) test/models -r should -R $(MOCHA_REPORTER)
test-watch:
@NODE_ENV=test $(MOCHA_WATCH)
test-cov: clear
@NODE_ENV=test $(MOCHA_COV)
test-mysql:
@CAMINTE_DRIVER=mysql $(MOCHA) --timeout 3000 -r should -R $(MOCHA_REPORTER)
test-sqlite:
@CAMINTE_DRIVER=sqlite $(MOCHA) --timeout 3000 -r should -R $(MOCHA_REPORTER)
test-postgres:
@CAMINTE_DRIVER=postgres $(MOCHA) --timeout 3000 -r should -R $(MOCHA_REPORTER)
test-redis:
@CAMINTE_DRIVER=redis $(MOCHA) --timeout 3000 -r should -R $(MOCHA_REPORTER)
test-mongo:
@CAMINTE_DRIVER=mongo $(MOCHA) --timeout 3000 -r should -R $(MOCHA_REPORTER)
test-tingo:
@CAMINTE_DRIVER=tingo $(MOCHA) --timeout 5000 -r should -R $(MOCHA_REPORTER)
test-rethinkdb:
@CAMINTE_DRIVER=rethinkdb $(MOCHA) --timeout 5000 -r should -R $(MOCHA_REPORTER)
test-arango:
@CAMINTE_DRIVER=arango $(MOCHA) --timeout 5000 -r should -R $(MOCHA_REPORTER)
test-neo4j:
@CAMINTE_DRIVER=neo4j $(MOCHA) --timeout 5000 -r should -R $(MOCHA_REPORTER)
test: test-sqlite test-mysql test-redis test-mongo test-arango
clear:
@rm -rf coverage
update:
.PHONY: test
.PHONY: doc