Skip to content

Commit

Permalink
Merge pull request #1802 from Sifchain/jure/wip
Browse files Browse the repository at this point in the history
Integration framework - proof of concept
  • Loading branch information
khdegraaf authored Aug 31, 2021
2 parents 40d74bb + 34fb006 commit 68aee15
Show file tree
Hide file tree
Showing 14 changed files with 1,455 additions and 22 deletions.
2 changes: 1 addition & 1 deletion smart-contracts/.env.ui.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LOCAL_PROVIDER="http://localhost:7545"
# ------------
# Network
# ------------
# Owner of the bridgebank, this must be set when we are deploying to tesnet or mainnet
# Owner of the bridgebank, this must be set when we are deploying to testnet or mainnet
OWNER='0x627306090abaB3A6e1400e9345bC60c78a8BEf57'
# Replace example MNEMONIC with your MetaMask mnemonic
MNEMONIC="candy maple cake sugar pudding cream honey rich smooth crumble sweet treat"
Expand Down
3 changes: 2 additions & 1 deletion test/integration/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
vagrantenv.sh
vagrantenv.json
/__pycache__/
/watcher_pids.txt
sandpit.log
../../smart-contracts/combined.log
../../smart-contracts/combined.log
17 changes: 17 additions & 0 deletions test/integration/execute_integration_tests_with_snapshots.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# this script can be run only against a test chain. It relies on tight control over
# ganache and knows where ganache stores its data.

set -e

. $(dirname $0)/vagrantenv.sh
. $(dirname $0)/shell_utilities.sh

loglevel=${LOG_LEVEL:-DEBUG}

logecho $0 starting

# To run these tests you must first create a snapshot with "make.py create_snapshot s1"
python3 -m pytest -olog_level=$loglevel -v -olog_file=/tmp/log.txt -v \
${TEST_INTEGRATION_PY_DIR}/test_random_currency_roundtrip_with_snapshots.py
Loading

0 comments on commit 68aee15

Please sign in to comment.