Skip to content

Commit

Permalink
chore: explain how to run integration tests in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
janaakhterov committed Jul 9, 2020
1 parent cdd2c4e commit 640ec67
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,29 @@ available in the [hashgraph/hedera-protobuf] repository.
$ go get github.com/hashgraph/hedera-sdk-go
```

## Running Integration Tests
```bash
$ env CONFIG="<your_config_file>" go test -v _Execute
```

or

```bash
$ env CONFIG="<your_config_file>" OPERATOR_KEY="<key>" OPERATOR_ID="<id>" go test -v _Execute
```

or

```bash
$ env OPERATOR_KEY="<key>" OPERATOR_ID="<id>" go test -v _Execute
```

The config file _can_ contain both the network and the operator, but you can also
use environment variables `OPERATOR_KEY` and `OPERATOR_ID`. If both are provided
the network is used from the config file, but for the operator the environment variables
take precedence. If the config file is not provided then the network will default to testnet
and `OPERATOR_KEY` and `OPERATOR_ID` **must** be provided.

## Contributing to this Project

We welcome participation from all developers!
Expand Down

0 comments on commit 640ec67

Please sign in to comment.