Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (20 sloc) 0.517 kB
UI = bdd
REPORTER = dot
TESTS = specs/*.spec.js
BIN = ./node_modules/.bin/mocha
LINT = ./node_modules/.bin/jshint
WATCH =
all: lint complexity test
lint:
@$(LINT) lib/
complexity:
@$(BIN) --ui $(UI) --reporter $(REPORTER) specs/complexity.js
test:
@$(BIN) --ui $(UI) --reporter $(REPORTER) $(WATCH) $(TESTS)
watch:
@$(MAKE) test REPORTER=spec WATCH=--watch
coverage:
@jscoverage --no-highlight lib lib-cov
@TEST_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
@rm -rf lib-cov
.PHONY: test coverage
Jump to Line
Something went wrong with that request. Please try again.