Skip to content
Newer
Older
100644 39 lines (26 sloc) 681 Bytes
35e2f6b @tj NODE makefile
tj authored
1
c96b778 @tj dot reporter
tj authored
2 REPORTER = dot
939cf45 @tj Added `make docs`
tj authored
3
c937c79 @tj Added docs/express.md makefile target
tj authored
4 docs: docs/express.md
5
6 docs/express.md: docs/application.md docs/request.md docs/response.md
7 cat $^ > $@
7e81cad @tj Added new dox API docs
tj authored
8
9 docs/%.md: lib/%.js
10 @mkdir -p docs
11 dox --raw < $< | ./support/docs > $@
12
babeb46 @tj `make test` now runs unit / acceptance tests
tj authored
13 test: test-unit test-acceptance
14
15 test-unit:
b8a589d @tj first new test
tj authored
16 @NODE_ENV=test ./node_modules/.bin/mocha \
0f5560e @tj updated tests to use "supertest"
tj authored
17 --reporter $(REPORTER) \
18 --bail
903f67a @tj Started utils.parseRange()
tj authored
19
29ef828 @tj added first batch of acceptance tests for examples
tj authored
20 test-acceptance:
dd7af29 @tj mocha.opts
tj authored
21 @NODE_ENV=test ./node_modules/.bin/mocha \
1e85178 @tj started mvc acceptance tests
tj authored
22 --reporter $(REPORTER) \
0f5560e @tj updated tests to use "supertest"
tj authored
23 --bail \
dd7af29 @tj mocha.opts
tj authored
24 test/acceptance/*.js
29ef828 @tj added first batch of acceptance tests for examples
tj authored
25
b6ee5fa @tj Added mocha test coverage support
tj authored
26 test-cov: lib-cov
27 @EXPRESS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
28
29 lib-cov:
30 @jscoverage lib lib-cov
31
7e81cad @tj Added new dox API docs
tj authored
32 docclean:
33 rm -fr docs
34
85fc586 @tj added `make benchmark` back
tj authored
35 benchmark:
36 @./support/bench
37
babeb46 @tj `make test` now runs unit / acceptance tests
tj authored
38 .PHONY: docs docclean test test-unit test-acceptance benchmark
Something went wrong with that request. Please try again.