use testnet-box for tests
This commit is contained in:
parent
85e57b994a
commit
8f1ef895fa
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal 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
22
Makefile
Normal 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
|
||||
@ -22,7 +22,7 @@
|
||||
"node": ">=0.2.6"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test/api.js"
|
||||
"test": "make test"
|
||||
},
|
||||
"optionalDependencies": {}
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
host: 'localhost',
|
||||
port: 8332,
|
||||
user: 'jb55',
|
||||
pass: 'thisisthepassword'
|
||||
user: 'admin1',
|
||||
pass: '123'
|
||||
};
|
||||
|
||||
1
test/testnet-box
Submodule
1
test/testnet-box
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 4536d383493c3a20c58ecd3760b8303640833d7a
|
||||
Loading…
Reference in New Issue
Block a user