1 | MOCHA_OPTS = --check-leaks
|
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-event test-http test-rendering test-test test-app
|
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/init.js test/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 | $(MOCHA_OPTS) \
|
23 | test/manipulation/*
|
24 |
|
25 | test-configuration:
|
26 | # Congiguration
|
27 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
28 | --reporter $(REPORTER) \
|
29 | --timeout 5000 \
|
30 | --bail \
|
31 | $(MOCHA_OPTS) \
|
32 | test/configuration/*
|
33 |
|
34 | test-object:
|
35 | # Object
|
36 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
37 | --reporter $(REPORTER) \
|
38 | --timeout 5000 \
|
39 | --bail \
|
40 | $(MOCHA_OPTS) \
|
41 | test/object/*
|
42 |
|
43 | test-dependency-injection:
|
44 | # Dependency Injection
|
45 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
46 | --reporter $(REPORTER) \
|
47 | --timeout 5000 \
|
48 | --bail \
|
49 | $(MOCHA_OPTS) \
|
50 | test/dependency-injection/*
|
51 |
|
52 | test-file-system:
|
53 | # File System
|
54 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
55 | --reporter $(REPORTER) \
|
56 | --timeout 5000 \
|
57 | --bail \
|
58 | $(MOCHA_OPTS) \
|
59 | test/file-system/*
|
60 |
|
61 | test-event:
|
62 | # Event
|
63 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
64 | --reporter $(REPORTER) \
|
65 | --timeout 5000 \
|
66 | --bail \
|
67 | $(MOCHA_OPTS) \
|
68 | test/event/*
|
69 |
|
70 | test-http:
|
71 | # HTTP
|
72 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
73 | --reporter $(REPORTER) \
|
74 | --timeout 5000 \
|
75 | --bail \
|
76 | $(MOCHA_OPTS) \
|
77 | test/http/*
|
78 |
|
79 | test-rendering:
|
80 | # Rendering
|
81 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
82 | --reporter $(REPORTER) \
|
83 | --timeout 5000 \
|
84 | --bail \
|
85 | $(MOCHA_OPTS) \
|
86 | test/rendering/*
|
87 |
|
88 | test-test:
|
89 | # Test
|
90 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
91 | --reporter $(REPORTER) \
|
92 | --timeout 5000 \
|
93 | --bail \
|
94 | $(MOCHA_OPTS) \
|
95 | test/test/*
|
96 |
|
97 | test-app:
|
98 | # App
|
99 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
100 | --reporter $(REPORTER) \
|
101 | --timeout 5000 \
|
102 | $(MOCHA_OPTS) \
|
103 | test/app.js |
\ | No newline at end of file |