Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adds node modules .bin path to makefile

  • Loading branch information...
commit a5c7255c4562b31a9e8ac684c41a71f11dd25816 1 parent 54ce8f8
@thisconnect authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 makefile
View
10 makefile
@@ -1,16 +1,18 @@
+export PATH := $(shell pwd)/node_modules/.bin/:$(PATH)
+
REPORTER = spec # list
all: test
-test: test-server test-client test-browser
+test: test-server test-client
test-server:
- @./node_modules/.bin/mocha --reporter $(REPORTER) ./test/server/*
+ @mocha --reporter $(REPORTER) ./test/server/*
test-client:
@node ./bin/planet & echo $$! > planet.pid
- @./node_modules/.bin/mocha --reporter $(REPORTER) --globals io ./test/io ./test/client/* || true
+ @mocha --reporter $(REPORTER) --globals io ./test/io ./test/client/* || true
@kill `cat planet.pid`
@rm planet.pid
@@ -19,6 +21,6 @@ test-browser:
@cp ./node_modules/mocha/mocha.js ./test/public/mocha.js
@cp ./node_modules/mocha/mocha.css ./test/public/mocha.css
@node ./node_modules/wrapup/bin/wrup.js --require public ./test/public.js --output ./test/public/tests.js
-# @open -a Google\ Chrome ./test/public/index.html
+ @open -a Google\ Chrome ./test/public/index.html
.PHONY: test
Please sign in to comment.
Something went wrong with that request. Please try again.