Skip to content

Commit

Permalink
Merge pull request #166 from Agoric/rs-starting-a3p-chain
Browse files Browse the repository at this point in the history
docs: update running tests with local chain
  • Loading branch information
rabi-siddique authored Sep 11, 2024
2 parents 723c2aa + 995b9af commit 96a7b48
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<network> 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:
Expand All @@ -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=<network> yarn test:e2e
```

where `<network>` 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.
Expand Down

0 comments on commit 96a7b48

Please sign in to comment.