Skip to content
This repository was archived by the owner on Dec 4, 2018. It is now read-only.

Commit 8f1ef89

Browse files
committed
use testnet-box for tests
1 parent 85e57b9 commit 8f1ef89

File tree

5 files changed

+29
-3
lines changed

5 files changed

+29
-3
lines changed

.gitmodules

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

Makefile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
VOWS=./node_modules/.bin/vows
2+
BOX=test/testnet-box
3+
4+
test:
5+
$(MAKE) start
6+
sleep 15
7+
$(MAKE) run-test
8+
$(MAKE) stop
9+
10+
start:
11+
$(MAKE) -C $(BOX) start
12+
13+
stop:
14+
$(MAKE) -C $(BOX) stop
15+
16+
run-test:
17+
$(VOWS) test/api.js
18+
19+
clean:
20+
$(MAKE) -C $(BOX) clean
21+
22+
.PHONY: test

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"node": ">=0.2.6"
2323
},
2424
"scripts": {
25-
"test": "node test/api.js"
25+
"test": "make test"
2626
},
2727
"optionalDependencies": {}
2828
}

test/config.example.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
host: 'localhost',
33
port: 8332,
4-
user: 'jb55',
5-
pass: 'thisisthepassword'
4+
user: 'admin1',
5+
pass: '123'
66
};

test/testnet-box

Submodule testnet-box added at 4536d38

0 commit comments

Comments
 (0)