Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (54 loc) · 1.41 KB
/
Copy pathMakefile
File metadata and controls
73 lines (54 loc) · 1.41 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
REPORTER = dot
all: build-recoms test-recoms
build-recoms:
@cd ./node_modules/recoms; node-gyp configure build
test-recoms:
@NODE_ENV=test ./node_modules/.bin/mocha ./node_modules/recoms/test
check: test
test: test-unit test-acceptance
test-unit: test-unit-client test-unit-server
test-unit-client:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--recursive \
--globals jQuery,window,document,location,navigator \
--bail \
test/unit-client
test-unit-server:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--recursive \
--ignore-leaks \
--bail \
test/unit-server
test-acceptance:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--bail \
test/acceptance/*.js
test-cov: lib-cov
@EXPRESS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
lib-cov:
@jscoverage lib lib-cov
docclean:
rm -fr docs
benchmark:
@./support/bench
.PHONY: docs docclean test test-unit test-acceptance benchmark
# --growl
#
#test: test-unit
#test-all: test-bdd test-tdd test-qunit test-exports test-unit test-grep test-jsapi test-compilers
#test-jsapi:
#@node test/jsapi
#test-unit:
#@./bin/mocha \
#--reporter $(REPORTER) \
#test/acceptance/*.js \
#test/*.js
#test-compilers:
#@./bin/mocha \
#--reporter $(REPORTER) \
#--compilers coffee:coffee-script,foo:./test/compiler/foo \
#test/acceptance/test.coffee \
#test/acceptance/test.foo