Permalink
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (30 sloc) 717 Bytes
TESTS = test/node/*.js
REPORTER = spec
all: superagent.js
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--require should \
--reporter $(REPORTER) \
--timeout 2000 \
--growl \
$(TESTS)
test-cov: lib-cov
SUPERAGENT_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
lib-cov:
jscoverage lib lib-cov
superagent.js: components
component build --standalone superagent
components:
component install
superagent.min.js: superagent.js
uglifyjs --no-mangle $< > $@
test-server:
@node test/server
docs: test-docs
test-docs:
make test REPORTER=doc \
| cat docs/head.html - docs/tail.html \
> docs/test.html
clean:
rm -fr superagent.js components
.PHONY: test-cov test docs test-docs clean