Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update running tests with local chain #166

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading