Skip to content

Commit d08b146

Browse files
authored
Merge pull request #1802 from Sifchain/jure/wip
Integration framework - proof of concept
2 parents 9e84082 + 1700db4 commit d08b146

14 files changed

+1455
-22
lines changed

smart-contracts/.env.ui.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LOCAL_PROVIDER="http://localhost:7545"
1212
# ------------
1313
# Network
1414
# ------------
15-
# Owner of the bridgebank, this must be set when we are deploying to tesnet or mainnet
15+
# Owner of the bridgebank, this must be set when we are deploying to testnet or mainnet
1616
OWNER='0x627306090abaB3A6e1400e9345bC60c78a8BEf57'
1717
# Replace example MNEMONIC with your MetaMask mnemonic
1818
MNEMONIC="candy maple cake sugar pudding cream honey rich smooth crumble sweet treat"

test/integration/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
vagrantenv.sh
2+
vagrantenv.json
23
/__pycache__/
34
/watcher_pids.txt
45
sandpit.log
5-
../../smart-contracts/combined.log
6+
../../smart-contracts/combined.log
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
# this script can be run only against a test chain. It relies on tight control over
4+
# ganache and knows where ganache stores its data.
5+
6+
set -e
7+
8+
. $(dirname $0)/vagrantenv.sh
9+
. $(dirname $0)/shell_utilities.sh
10+
11+
loglevel=${LOG_LEVEL:-DEBUG}
12+
13+
logecho $0 starting
14+
15+
# To run these tests you must first create a snapshot with "make.py create_snapshot s1"
16+
python3 -m pytest -olog_level=$loglevel -v -olog_file=/tmp/log.txt -v \
17+
${TEST_INTEGRATION_PY_DIR}/test_random_currency_roundtrip_with_snapshots.py

0 commit comments

Comments
 (0)