Skip to content

Commit

Permalink
Merge pull request #390 from Agoric/rs-update-docs-on-env-variables
Browse files Browse the repository at this point in the history
docs: clarify exporting env variables for e2e testing
  • Loading branch information
rabi-siddique authored Dec 17, 2024
2 parents f88d5d9 + 86c4b03 commit 94d7fa1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,15 @@ To run end-to-end tests locally, it's best to avoid running multiple processes o

### 1. Exporting Environment Variables

When testing liquidation scenarios, make sure to export the following environment variables:
When conducting liquidation tests, certain environment variables need to be set to ensure the tests run correctly. However, these variables are not required when testing with a local chain.

#### Testing on Local Chain:

No additional environment variables are needed. Proceed with your tests as usual.

#### Testing on Testnet Chains (e.g., Emerynet, Devnet):

Before running the tests, export the necessary environment variables. Here is the list of environment variables you should set:

- `CYPRESS_BIDDER_MNEMONIC`: Mnemonic for the bidder. This wallet is responsible for placing bids.
- `CYPRESS_BIDDER_ADDRESS`: Wallet address for the bidder.
Expand All @@ -128,8 +136,6 @@ When testing liquidation scenarios, make sure to export the following environmen
- `CYPRESS_GOV2_MNEMONIC`: Mnemonic for the `gov2` account.
- `CYPRESS_GOV2_ADDRESS`: Wallet address for the `gov2` account.

Make sure these environment variables are correctly set in your environment before running the tests. If you are testing with `a3p` chain, setting these environment variables is not required.

### 2. Start the development server

To run tests on your local machine, first start your local development server, use the following command:
Expand Down

0 comments on commit 94d7fa1

Please sign in to comment.