Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (26 sloc) 693 Bytes
TESTS = test/*.js
REPORTER = spec
build: components
@./node_modules/.bin/component-build --dev
components:
@./node_modules/.bin/component-install --dev
test: build
@printf "\n ==> [Node.js]"
@NODE_ENV=test ./node_modules/.bin/mocha \
--require ./test/bootstrap \
--reporter $(REPORTER) \
$(TESTS)
@printf "\n ==> [Phantom.Js]"
@./node_modules/.bin/mocha-phantomjs \
--R ${REPORTER} \
./test/browser/index.html
test-cov: lib-cov
@properties_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
lib-cov: clean
@jscoverage lib lib-cov
clean:
@rm -rf lib-cov
@rm -f coverage.html
@rm -rf build
@rm -rf components
.PHONY: build components test lib-cov test-cov clean