Skip to content

Commit

Permalink
Document setting of env variables for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ermyas committed Oct 11, 2023
1 parent 2c9665e commit 913b960
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ $ forge build

**Step 4:** Run Tests

To run the tests, you will need a local fork of Ethereum, Polygon, and BSC mainnet states. To accomplish this, you must specify RPC endpoints for each of these networks. You can obtain RPC endpoints to use for Ethereum and Polygon, from Alchemy, Infura, or other infrastructure providers. For BSC, you can choose from a list of public RPC endpoints available [here](https://docs.bscscan.com/misc-tools-and-utilities/public-rpc-nodes).

To set the RPC endpoints, make a copy of the `.env.sample` file and rename it to `.env`. Then, fill in the respective values in the file.

Once you have set these values, you can run both the unit and integration tests using the following command:

```sh

```sh
$ forge test
```
Expand Down

0 comments on commit 913b960

Please sign in to comment.