You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+14-14
Original file line number
Diff line number
Diff line change
@@ -55,40 +55,40 @@ To run tests on your local machine, first you need to start the frontend server:
55
55
yarn dev
56
56
```
57
57
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:
59
59
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
70
62
```
71
63
72
64
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:
73
65
74
-
```
66
+
```bash
75
67
yarn && yarn build
76
68
```
77
69
78
70
Once the build is complete, locate the Docker image you just created by running:
79
71
80
-
```
72
+
```bash
81
73
docker images
82
74
```
83
75
84
76
Find the hash of your new image and start the container using the hash:
85
77
86
-
```
78
+
```bash
87
79
docker run -p 26657:26657 -p 1317:1317 -p 9090:9090 {hash}
88
80
```
89
81
90
82
**Note:** The tests use chrome browser by default so they require it to be installed
91
83
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
+
92
92
## On Github
93
93
94
94
To run the tests on github, you can use the workflow trigger to run the tests.
0 commit comments