This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
18 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,10 @@ The E2E tests run against local deployments of the parachain, relayer and ganach | |
(cd ../ethereum && yarn install) | ||
``` | ||
|
||
* Development environment for the relay services. See relayer [requirements](../relayer/README.md#development). | ||
* `timeout` - native package on Ubuntu, on macOS try ```brew install coreutils``` | ||
* Development environment for the relay services. See setup [instructions](../relayer/README.md#development). | ||
* `jq` - https://stedolan.github.io/jq/download/ | ||
* geth - https://geth.ethereum.org/docs/install-and-build/installing-geth | ||
* sponge - Is available in the moreutils package. On Mac see https://formulae.brew.sh/formula/moreutils. On Linux: | ||
* sponge - Is available in the `moreutils` package. | ||
|
||
```bash | ||
apt install moreutils | ||
|
@@ -31,11 +30,17 @@ The E2E tests run against local deployments of the parachain, relayer and ganach | |
* polkadot-launch | ||
|
||
```bash | ||
yarn global add [email protected] | ||
yarn global add [email protected] | ||
``` | ||
|
||
## Setup | ||
|
||
### Install NPM dependencies | ||
|
||
```bash | ||
yarn install | ||
``` | ||
|
||
### Polkadot | ||
|
||
* Clone the polkadot repository somewhere on your machine | ||
|
@@ -51,7 +56,7 @@ cargo build --release | |
|
||
### Configure testnet | ||
|
||
Create an `.env` file with variables that point to the binary for polkadot | ||
Create an `.env` file, and set the `POLKADOT_BIN` variable to the location of the polkadot binary built in the previous step. | ||
|
||
Example: | ||
``` | ||
|
@@ -65,7 +70,7 @@ Run the following script | |
scripts/start-services.sh | ||
``` | ||
|
||
Wait until the "System has been initialized" message | ||
Wait until the "Testnet has been initialized" message | ||
|
||
Go to polkadot-js and wait until the parachain has started producing blocks: | ||
https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A11144#/explorer | ||
|
@@ -84,19 +89,7 @@ The `start-services.sh` script writes the following logs: | |
|
||
## E2E tests | ||
|
||
### Setup | ||
|
||
Download dependencies: | ||
|
||
```bash | ||
yarn install | ||
``` | ||
|
||
You should now be good to go! | ||
|
||
## Run Tests | ||
|
||
### Integration Tests | ||
Run the tests using the following command: | ||
|
||
```bash | ||
yarn test | ||
|