Skip to content

Commit edcc63b

Browse files
committed
Add README
1 parent b7b3d4c commit edcc63b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

integration-tests/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Pyth Agent End-To-End Integration Tests
2+
3+
This project provides end-to-end tests for the [Pyth `agent`](../) binary. Each test:
4+
- Starts an instance of [`solana-test-validator`](https://docs.solana.com/developing/test-validator).
5+
- Deploys the [Pyth Oracle program](https://github.com/pyth-network/pyth-client/tree/main/program).
6+
- Creates [Mapping; Product and Price accounts](https://docs.pyth.network/design-overview/account-structure) using the [`program-admin`](https://github.com/pyth-network/program-admin) library.
7+
- Builds and runs an instance of Pyth `agent`, configured with the accounts set up in the previous step.
8+
- Uses the [JRPC Websocket API](https://docs.pyth.network/publish-data/pyth-client-websocket-api) to test publishing and retrieving data from the network.
9+
10+
## Installing
11+
The test framework uses [Poetry](https://python-poetry.org/) and requires Python >3.10. To install the project:
12+
13+
```bash
14+
poetry install
15+
```
16+
17+
## Running Tests
18+
```bash
19+
pytest -s --log-cli-level=debug
20+
```

0 commit comments

Comments
 (0)