Skip to content

Instantly share code, notes, and snippets.

@blissdev
Last active December 20, 2015 23:59
Show Gist options
  • Save blissdev/6217093 to your computer and use it in GitHub Desktop.
Save blissdev/6217093 to your computer and use it in GitHub Desktop.
`bootstrap.js` outputs a string of commands to be run before the test. `eval` works in the terminal but not in Make.
REPORTER = dot
test:
@eval $(NODE_ENV=test node test/bootstrap/bootstrap.js)
@NODE_ENV=test ./node_modules/.bin/mocha test/* \
--reporter $(REPORTER) \
--watch
testw:
@NODE_ENV=test ./node_modules/.bin/mocha test/* \
--reporter $(REPORTER) \
--watch
.PHONY: test testw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment