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: ...@@ -3,6 +3,8 @@ build:
node-gyp build node-gyp build
clean: clean:
rm test/support/big.db*
rm test/tmp/*
node-gyp clean node-gyp clean
db: db:
...@@ -14,11 +16,11 @@ db: ...@@ -14,11 +16,11 @@ db:
ifndef only ifndef only
test: build db test: build db
@rm -rf ./test/tmp && mkdir -p ./test/tmp @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 else
test: build db test: build db
@rm -rf ./test/tmp && mkdir -p ./test/tmp @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 endif
.PHONY: build clean test .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