Skip to content
Permalink
Browse files

Also include the documentation tests when building the coverage report.

  • Loading branch information
papandreou committed Dec 7, 2015
1 parent 9d7cdc7 commit f7e587b5df3824ff86371fe07b99cf4e72a86e71
Showing with 3 additions and 2 deletions.
  1. +3 −2 Makefile
@@ -25,9 +25,10 @@ test-jasmine: ${TARGETS}
test-jasmine-browser: unexpected.js
@./node_modules/.bin/serve .

TEST_SOURCES = test/*.spec.js $(shell find documentation -name '*.md')
.PHONY: test
test: lint
mocha test/*.spec.js `find documentation -name '*.md'`
mocha $(TEST_SOURCES)

.PHONY: coverage
coverage:
@@ -41,7 +42,7 @@ coverage:
-x bootstrap-unexpected-markdown.js \
--report text \
--report lcov \
--include-all-sources ./node_modules/mocha/bin/_mocha -- --reporter dot
--include-all-sources ./node_modules/mocha/bin/_mocha -- --reporter dot $(TEST_SOURCES)
@echo google-chrome coverage/lcov-report/index.html

.PHONY: test-browser

0 comments on commit f7e587b

Please sign in to comment.
You can’t perform that action at this time.