Commit ad321167 by Konstantin Käfer

move scripts to mocha

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