Permalink
Browse files

move scripts to mocha

  • Loading branch information...
1 parent 2672f40 commit ad3211676c63f709556c5261c53c0b3bc8709256 @kkaefer kkaefer committed Mar 19, 2013
Showing with 2 additions and 9 deletions.
  1. +1 −8 Makefile
  2. +1 −1 package.json
View
@@ -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
View
@@ -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"

0 comments on commit ad32116

Please sign in to comment.