@@ -95,12 +95,13 @@ protoc --grpc-swift_opt=Visibility=Public,FileNaming=PathToUnderscores,Server=fa
9595### Integration Tests
9696Before running the integration tests, an operator key, operator account id, and a network name must be set in an ` .env ` file.
9797``` bash
98- # Account that will pay query and transaction fees
99- TEST_OPERATOR_ACCOUNT_ID=
100- # Default private key to use to sign for all transactions and queries
98+ TEST_OPERATOR_ID=
99+ # Default private key to use to sign for all transactions and queries.
101100TEST_OPERATOR_KEY=
102- # Network names: ` "localhost"`, ` "testnet"`, ` "previewnet"`, ` "mainnet"`
101+ # Network names: "localhost", "testnet", "previewnet", "mainnet".
103102TEST_NETWORK_NAME=
103+ # Running on-chain tests if this value is set to 1.
104+ TEST_RUN_NONFREE=
104105```
105106``` bash
106107# Run tests
@@ -113,12 +114,19 @@ Hedera offers a way to run tests through your localhost using the `hedera-local-
113114For instructions on how to set up and run local node, follow the steps in the git repository:
114115https://github.com/hashgraph/hedera-local-node
115116
116- Once the local node is running in Docker, the appropriate ` .env ` values must be set:
117+ Once the local node is running in Docker, use these environment variables in the ` .env ` .
118+
117119``` bash
118- TEST_OPERATOR_ACCOUNT_ID=0.0.2
119- TEST_OPERATOR_KEY=3030020100300706052b8104000a042204205bc004059ffa2943965d306f2c44d266255318b3775bacfec42a77ca83e998f2
120+ # Account that will pay query and transaction fees.
121+ TEST_OPERATOR_ID=0.0.1022
122+ # Default private key to use to sign for all transactions and queries.
123+ TEST_OPERATOR_KEY=302e020100300506032b657004220420a608e2130a0a3cb34f86e757303c862bee353d9ab77ba4387ec084f881d420d4
124+ # Network names: "localhost", "testnet", "previewnet", "mainnet".
120125TEST_NETWORK_NAME=localhost
126+ # Running on-chain tests if this value is set to 1.
127+ TEST_RUN_NONFREE=1
121128```
129+
122130Lastly, run the tests using ` swift test `
123131
124132### Generate SDK
0 commit comments