-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add readme for unit tests (#392)
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Unit Tests for apigeecli | ||
|
||
## Environment Variables | ||
|
||
Set the following environment variables: | ||
|
||
* `APIGEE_ORG` | ||
* `APIGEE_ENV` | ||
* `APIGEECLI_PATH` (path to the apigeecli folder) | ||
|
||
If the org was created with DRZ options, then also set: | ||
|
||
* `APIGEE_REGION` | ||
|
||
For tests involving Apigee API Portal, set: | ||
|
||
* `APIGEE_SITEID` | ||
|
||
For tests involving Apigee API Registry, set: | ||
|
||
* `APIGEE_REGION` | ||
|
||
## Running the tests | ||
|
||
Run `go test internal/client/<package>` or Run `go test internal/client/<package> -cover` to include code coverage |