Commit ad321167 by Konstantin Käfer

move scripts to mocha

parent 2672f403
......@@ -13,14 +13,7 @@ db:
node test/support/createdb.js ; \
fi
ifndef only
test: build db
@rm -rf ./test/tmp && mkdir -p ./test/tmp
@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
@PATH="./node_modules/.bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" expresso -I lib test/${only}.test.js
endif
npm test
.PHONY: build clean test
......@@ -36,7 +36,7 @@
"node": ">= 0.6.13 && < 0.11.0"
},
"scripts": {
"test": "make test"
"test": "mocha -R spec"
},
"licenses": [{ "type": "BSD" }],
"main": "./lib/sqlite3"
......
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