Skip to content

Commit

Permalink
Added docs on how to run integation tests via Intellij Idea (#1595)
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Lebedev <[email protected]>
  • Loading branch information
thenswan committed Oct 13, 2023
1 parent b2a8bd6 commit b0c9de5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file added docs/assets/intellij-integration-tests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/sdk/developer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ Running test function:
$ CONFIG_FILE=whatever ./gradlew integrationTest -POPERATOR_ID="<shard.realm.num>" -POPERATOR_KEY="<PrivateKey>" -PHEDERA_NETWORK="testnet" --tests "<TestClass.functionName>"
```

#### Running with Intellij IDEA
1. Create a new Gradle run configuration (easiest way is to run test class or individual test function from the IDE).
2. Update "Run" configuration to pass the required system properties (`OPERATOR_ID`, `OPERATOR_KEY` and `HEDERA_NETWORK`).
3. Update "Environment variables" to pass the `CONFIG_FILE=whatever`.
<img src="../assets/intellij-integration-tests.png">

## Maintaining generated files
>To execute the tasks below, you need to install the tool from this link: https://taskfile.dev/
> (these tasks are from the file Taskfile.yml, which is located in the root of the repository).
Expand Down

0 comments on commit b0c9de5

Please sign in to comment.