Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

65 lines (47 sloc) 1.014 kb
TESTS = test/*.js
REPORTER = spec
#
# Tests
#
test: test-node test-browser
test-node:
@printf "\n ==> [Node.js]"
@NODE_ENV=test ./node_modules/.bin/mocha \
--require ./test/bootstrap \
--reporter $(REPORTER) \
$(TESTS)
test-browser: build
@printf "\n ==> [Phantom.Js]"
@./node_modules/.bin/mocha-phantomjs \
--R ${REPORTER} \
./test/browser/index.html
test-cov: lib-cov
@filter_COV=1 NODE_ENV=test ./node_modules/.bin/mocha \
--require ./test/bootstrap \
--reporter html-cov \
$(TESTS) \
> coverage.html
#
# Components
#
build: components lib/*
@./node_modules/.bin/component-build --dev
components: component.json
@./node_modules/.bin/component-install --dev
#
# Coverage
#
lib-cov:
@rm -rf lib-cov
@jscoverage lib lib-cov
#
# Clean up
#
clean: clean-components clean-cov
clean-components:
@rm -rf build
@rm -rf components
clean-cov:
@rm -rf lib-cov
@rm -f coverage.html
.PHONY: clean clean-components clean-cov test test-cov test-node test-browser lib-cov
Jump to Line
Something went wrong with that request. Please try again.