Created
August 20, 2013 00:13
-
-
Save pyk/6275689 to your computer and use it in GitHub Desktop.
my Makefile .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TESTS = test/*/*.js | |
REPORTER = spec | |
test: | |
@NODE_ENV=test ./node_modules/.bin/mocha \ | |
--require should \ | |
--reporter $(REPORTER) \ | |
$(TESTS) | |
test-docs: | |
mkdir docs && touch docs/test.html && \ | |
make test REPORTER=doc \ | |
> docs/test.html | |
clean: | |
rm -rf docs | |
.PHONY: test test-docs clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment