Commit 59d9e0aa by Dane Springmeyer

put local expresso on path and clean up test db in clean target

parent 563f3b9d
......@@ -3,6 +3,8 @@ build:
node-gyp build
clean:
rm test/support/big.db*
rm test/tmp/*
node-gyp clean
db:
......@@ -14,11 +16,11 @@ db:
ifndef only
test: build db
@rm -rf ./test/tmp && mkdir -p ./test/tmp
NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/*.test.js
@PATH="./node_modules/.bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/*.test.js
else
test: build db
@rm -rf ./test/tmp && mkdir -p ./test/tmp
NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/${only}.test.js
@PATH="./node_modules/.bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/${only}.test.js
endif
.PHONY: build clean test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment