Skip to content

Commit

Permalink
chore: add readme for unit tests (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan authored Feb 6, 2024
1 parent 9120163 commit 350c5e9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/README.md
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

0 comments on commit 350c5e9

Please sign in to comment.