From 333e89d5fddf250eb7f98aae1fb799130f5356bd Mon Sep 17 00:00:00 2001 From: rabi-siddique Date: Wed, 11 Sep 2024 09:11:58 +0500 Subject: [PATCH] docs: update running tests with local chain --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5c38376..38a4ada 100644 --- a/README.md +++ b/README.md @@ -38,18 +38,10 @@ To run tests on your local machine, first you need to start the frontend server: yarn dev ``` -Then you need to run the tests using +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: -``` -CYPRESS_AGORIC_NET= yarn test:e2e -``` - -where `network` can be: `local`, `emerynet`, `xnet,` or `devnet` - -In case the tests are run on `local` network, you need to startup a local `a3p` chain using - -``` -docker compose -f tests/e2e/docker-compose.yml up -d agd +```bash +docker run -d -p 26657:26657 -p 1317:1317 -p 9090:9090 ghcr.io/agoric/agoric-3-proposals:latest ``` 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: @@ -72,6 +64,14 @@ docker run -p 26657:26657 -p 1317:1317 -p 9090:9090 {hash} **Note:** the tests use chrome browser by default so they require it to be installed +Next, run the tests using the following command: + +```bash +CYPRESS_AGORIC_NET= yarn test:e2e +``` + +where `` can be: `local`,`emerynet`,`devnet`, `xnet` or `ollinet`. + ### On Github To run the tests on github, you can use the workflow trigger to run the tests.