1 | MOCHA_OPTS = --check-leaks --globals async
|
2 | REPORTER = dot
|
3 |
|
4 | check: test
|
5 |
|
6 | test: test-utils test-manipulation test-configuration test-object test-dependency-injection test-file-system test-sequencing test-event test-http test-rendering test-command test-logging test-test test-app test-proto
|
7 |
|
8 | test-utils:
|
9 | # Utils
|
10 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
11 | --reporter $(REPORTER) \
|
12 | --timeout 5000 \
|
13 | $(MOCHA_OPTS) \
|
14 | test/unit/init.js test/unit/utils.js
|
15 |
|
16 | test-manipulation:
|
17 | # Manipulation
|
18 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
19 | --reporter $(REPORTER) \
|
20 | --timeout 5000 \
|
21 | --bail \
|
22 | --recursive \
|
23 | $(MOCHA_OPTS) \
|
24 | test/unit/manipulation/*
|
25 |
|
26 | test-configuration:
|
27 | # Congiguration
|
28 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
29 | --reporter $(REPORTER) \
|
30 | --timeout 5000 \
|
31 | --bail \
|
32 | --recursive \
|
33 | $(MOCHA_OPTS) \
|
34 | test/unit/configuration/*
|
35 |
|
36 | test-object:
|
37 | # Object
|
38 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
39 | --reporter $(REPORTER) \
|
40 | --timeout 5000 \
|
41 | --bail \
|
42 | --recursive \
|
43 | $(MOCHA_OPTS) \
|
44 | test/unit/object/*
|
45 |
|
46 | test-dependency-injection:
|
47 | # Dependency Injection
|
48 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
49 | --reporter $(REPORTER) \
|
50 | --timeout 5000 \
|
51 | --bail \
|
52 | --recursive \
|
53 | $(MOCHA_OPTS) \
|
54 | test/unit/dependency-injection/*
|
55 |
|
56 | test-file-system:
|
57 | # File System
|
58 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
59 | --reporter $(REPORTER) \
|
60 | --timeout 5000 \
|
61 | --bail \
|
62 | --recursive \
|
63 | $(MOCHA_OPTS) \
|
64 | test/unit/file-system/*
|
65 |
|
66 | test-sequencing:
|
67 | # Sequencing
|
68 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
69 | --reporter $(REPORTER) \
|
70 | --timeout 5000 \
|
71 | --bail \
|
72 | --recursive \
|
73 | $(MOCHA_OPTS) \
|
74 | test/unit/sequencing/*
|
75 |
|
76 | test-event:
|
77 | # Event
|
78 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
79 | --reporter $(REPORTER) \
|
80 | --timeout 5000 \
|
81 | --bail \
|
82 | --recursive \
|
83 | $(MOCHA_OPTS) \
|
84 | test/unit/event/*
|
85 |
|
86 | test-http:
|
87 | # HTTP
|
88 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
89 | --reporter $(REPORTER) \
|
90 | --timeout 5000 \
|
91 | --bail \
|
92 | --recursive \
|
93 | $(MOCHA_OPTS) \
|
94 | test/unit/http/*
|
95 |
|
96 | test-rendering:
|
97 | # Rendering
|
98 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
99 | --reporter $(REPORTER) \
|
100 | --timeout 5000 \
|
101 | --bail \
|
102 | --recursive \
|
103 | --delay \
|
104 | $(MOCHA_OPTS) \
|
105 | test/unit/rendering/*
|
106 |
|
107 | test-command:
|
108 | # Command
|
109 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
110 | --reporter $(REPORTER) \
|
111 | --timeout 10000 \
|
112 | --bail \
|
113 | --recursive \
|
114 | $(MOCHA_OPTS) \
|
115 | test/unit/command/*
|
116 |
|
117 | test-logging:
|
118 | # Logging
|
119 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
120 | --reporter $(REPORTER) \
|
121 | --timeout 5000 \
|
122 | --bail \
|
123 | --recursive \
|
124 | $(MOCHA_OPTS) \
|
125 | test/unit/logging/*
|
126 |
|
127 | test-test:
|
128 | # Test
|
129 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
130 | --reporter $(REPORTER) \
|
131 | --timeout 10000 \
|
132 | --bail \
|
133 | --recursive \
|
134 | --delay \
|
135 | $(MOCHA_OPTS) \
|
136 | test/unit/test/*
|
137 |
|
138 | test-app:
|
139 | # App
|
140 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
141 | --reporter $(REPORTER) \
|
142 | --timeout 5000 \
|
143 | --delay \
|
144 | $(MOCHA_OPTS) \
|
145 | test/unit/app.js
|
146 |
|
147 | test-proto:
|
148 | # Proto
|
149 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
150 | --reporter $(REPORTER) \
|
151 | --timeout 5000 \
|
152 | $(MOCHA_OPTS) \
|
153 | test/unit/proto.js |
\ | No newline at end of file |