Skip to content

Commit

Permalink
docs: clarify exporting env variables for e2e testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Dec 17, 2024
1 parent f88d5d9 commit da474af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@
"**/@agoric/xsnap": "0.14.3-u14.0",
"**/@agoric/time": "0.3.3-u14.0",
"**/@agoric/vats": "0.15.2-u15.0"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
2 changes: 1 addition & 1 deletion test/e2e/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const balanceUrl =
: 'http://localhost:1317/cosmos/bank/v1beta1/balances/';
const COMMAND_TIMEOUT = configMap[network].COMMAND_TIMEOUT;

const agops = '/usr/src/agoric-sdk/packages/agoric-cli/bin/agops';
const agops = '/Users/rabisiddique/Desktop/Work/agoric-sdk/packages/agoric-cli/bin/agops';

Cypress.Commands.add('addKeys', params => {
const { keyName, mnemonic, expectedAddress } = params;
Expand Down

0 comments on commit da474af

Please sign in to comment.