Up-to-date tests readme

This commit is contained in:
Kirill Fedoseev 2019-11-26 16:52:38 +03:00
parent b2f7d035f2
commit 751c52eac2
1 changed files with 5 additions and 6 deletions

View File

@ -17,9 +17,7 @@ To run the bridge tests, you first need to clean old test environment, and then
./tests/init.sh
```
This will create a clean development environment, using `./demo/start-environment.sh`.
This will also prefund user accounts from `./tests/config.json` for both networks.
Prefunding process uses `./src/test-services` scripts.
Finally, this command will start 3 validators in daemon mode (using `./demo/validator-demo.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:
@ -27,9 +25,10 @@ Next, you can run the tests:
./tests/run.sh
```
After tests are done, all active docker containers can be killed.
After tests are done, all active docker containers should be killed automatically.
Or you can do it manually:
```bash
docker kill $(docker ps | grep validator[1-3]_ | awk '{print $1}')
docker kill ganache_side ganache_home
docker kill binance-testnet_http-api_1 binance-testnet_node_1 binance-testnet_api-server_1
docker kill $(docker ps | grep ethereum-testnet_ | awk '{print $1}')
docker kill $(docker ps | grep binance-testnet_ | awk '{print $1}')
```