Skip to content

Commit 9f77053

Browse files
committed
docs: starting a3p chain with e2e tests
1 parent d66f4fa commit 9f77053

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -55,40 +55,40 @@ To run tests on your local machine, first you need to start the frontend server:
5555
yarn dev
5656
```
5757

58-
Then you need to run the tests using
58+
If you plan to run tests with `CYPRESS_AGORIC_NET=local`, you must start the `a3p` chain beforehand. To do this, use the following command:
5959

60-
```
61-
CYPRESS_AGORIC_NET=<network> yarn test:e2e
62-
```
63-
64-
where `network` can be: `local`, `emerynet`, `xnet` or `devnet`
65-
66-
In case the tests are run on `local` network, you need to startup a local `a3p` chain using
67-
68-
```
69-
docker compose -f tests/e2e/docker-compose.yml up -d agd
60+
```bash
61+
docker run -d -p 26657:26657 -p 1317:1317 -p 9090:9090 ghcr.io/agoric/agoric-3-proposals:latest
7062
```
7163

7264
Alternatively, you can create an `a3p` chain from a specific branch in your `agoric-sdk` repository. To do this, navigate to the `a3p-integration` directory in your `agoric-sdk` repository. Install all necessary dependencies and build the project with:
7365

74-
```
66+
```bash
7567
yarn && yarn build
7668
```
7769

7870
Once the build is complete, locate the Docker image you just created by running:
7971

80-
```
72+
```bash
8173
docker images
8274
```
8375

8476
Find the hash of your new image and start the container using the hash:
8577

86-
```
78+
```bash
8779
docker run -p 26657:26657 -p 1317:1317 -p 9090:9090 {hash}
8880
```
8981

9082
**Note:** The tests use chrome browser by default so they require it to be installed
9183

84+
Next, run the tests using the following command:
85+
86+
```bash
87+
CYPRESS_AGORIC_NET=<network> yarn test:e2e
88+
```
89+
90+
where `<network>` can be: `local`,`emerynet`,`devnet`, `xnet` or `ollinet`.
91+
9292
## On Github
9393

9494
To run the tests on github, you can use the workflow trigger to run the tests.

0 commit comments

Comments
 (0)