use testnet-box for tests

This commit is contained in:
freewil 2012-04-25 19:04:27 -04:00
parent 85e57b994a
commit 8f1ef895fa
5 changed files with 29 additions and 3 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "test/testnet-box"]
path = test/testnet-box
url = https://github.com/freewil/bitcoin-testnet-box

22
Makefile Normal file
View File

@ -0,0 +1,22 @@
VOWS=./node_modules/.bin/vows
BOX=test/testnet-box
test:
$(MAKE) start
sleep 15
$(MAKE) run-test
$(MAKE) stop
start:
$(MAKE) -C $(BOX) start
stop:
$(MAKE) -C $(BOX) stop
run-test:
$(VOWS) test/api.js
clean:
$(MAKE) -C $(BOX) clean
.PHONY: test

View File

@ -22,7 +22,7 @@
"node": ">=0.2.6"
},
"scripts": {
"test": "node test/api.js"
"test": "make test"
},
"optionalDependencies": {}
}

View File

@ -1,6 +1,6 @@
module.exports = {
host: 'localhost',
port: 8332,
user: 'jb55',
pass: 'thisisthepassword'
user: 'admin1',
pass: '123'
};

1
test/testnet-box Submodule

@ -0,0 +1 @@
Subproject commit 4536d383493c3a20c58ecd3760b8303640833d7a