Skip to content

Instantly share code, notes, and snippets.

@pyk
Created August 20, 2013 00:13
Show Gist options
  • Save pyk/6275689 to your computer and use it in GitHub Desktop.
Save pyk/6275689 to your computer and use it in GitHub Desktop.
my Makefile .
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