eth-to-bnc-bridge/tests
Kirill Fedoseev 3b6e64b784 Keygen restart tests 2019-11-26 17:41:59 +03:00
..
test Keygen restart tests 2019-11-26 17:41:59 +03:00
.dockerignore Added docker ignore files 2019-11-01 11:20:26 +03:00
.env Keygen restart tests 2019-11-26 17:41:59 +03:00
.eslintrc Added eslint configs 2019-11-01 21:42:44 +03:00
.mocharc.yml Wrote tests for removing validator 2019-10-29 21:07:11 +03:00
Dockerfile Bnc to eth tests, artifacts processing in circleci config 2019-10-28 15:47:07 +03:00
README.md Up-to-date tests readme 2019-11-26 16:52:38 +03:00
config.json Wrote tests for removing validator 2019-10-29 21:07:11 +03:00
init.sh Updated configs, removed init_blockchains separate step 2019-11-15 10:20:12 +03:00
package.json Fixed eslint error/warnings 2019-11-01 21:43:25 +03:00
reportersConfig.json Bnc to eth tests, artifacts processing in circleci config 2019-10-28 15:47:07 +03:00
run.sh Extra data query parameter for some of the votes 2019-11-25 15:30:35 +03:00

README.md

Ethereum to Binance Chain / E2E tests

Prerequisites

To run the tests you need to have Docker and Docker Compose installed.

Correlation with CircleCI tests

CircleCI uses this tests for testing the code base.

Running

To run the bridge tests, you first need to clean old test environment, and then initialize a new one:

./tests/init.sh

This will create a clean development environment, using ./demo/start-environment.sh. Then, this command will start 3 validators in daemon mode (using ./demo/validator-demo.sh), and wait until they are ready.

Next, you can run the tests:

./tests/run.sh

After tests are done, all active docker containers should be killed automatically. Or you can do it manually:

docker kill $(docker ps | grep validator[1-3]_ | awk '{print $1}')
docker kill $(docker ps | grep ethereum-testnet_ | awk '{print $1}')
docker kill $(docker ps | grep binance-testnet_ | awk '{print $1}')