Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 463 Bytes
BIN = ./node_modules/.bin
.PHONY: all
all:
lib-cov: clean-coverage
$(BIN)/istanbul instrument --output lib-cov --no-compact --variable global.__coverage__ lib
.PHONY: test
test:
$(BIN)/mocha
.PHONY: coverage
coverage: lib-cov
BEMP_COVER=1 $(BIN)/mocha --reporter mocha-istanbul
@echo
@echo Open html-report/index.html file in your browser
.PHONY: clean
clean: clean-coverage
.PHONY: clean-coverage
clean-coverage:
-rm -rf lib-cov
-rm -rf html-report