Skip to content

Instantly share code, notes, and snippets.

@jperkelens
Created April 26, 2012 20:53
Show Gist options
  • Save jperkelens/2503102 to your computer and use it in GitHub Desktop.
Save jperkelens/2503102 to your computer and use it in GitHub Desktop.
Mocha Makefile
file=*.test.js
files=`find test/unit -name '$(file)' -type f -print0 | xargs -0 echo`
default: all
all: unit peanut
ci: unit-ci peanut-ci
unit:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter dot \
$(files)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment