@@ -52,11 +52,13 @@ curl -X GET <signed url>
5252## Running Tests
5353
5454### Unit Tests
55+ ** Note:** Run the following commands from the repository root directory
5556
5657- Using ginkgo:
5758
5859 ``` bash
5960 go install github.com/onsi/ginkgo/v2/ginkgo
61+
6062 ginkgo --skip-package=integration --randomize-all --cover -v -r ./azurebs/...
6163 ```
6264
@@ -69,22 +71,25 @@ curl -X GET <signed url>
6971### Integration Tests
7072- To run the integration tests with your existing container
7173 1 . Export the following variables into your environment.
72- ``` bash
73- export ACCOUNT_NAME=< your Azure accounnt name>
74- export ACCOUNT_KEY=< your Azure account key>
75- export CONTAINER_NAME=< the target container name>
76- ```
77- 1. Run the command
78- ` ` ` bash
79- go test ./azurebs/integration/...
80- ` ` `
74+
75+ ``` bash
76+ export ACCOUNT_NAME=< your Azure accounnt name>
77+ export ACCOUNT_KEY=< your Azure account key>
78+ export CONTAINER_NAME=< the target container name>
79+ ```
80+
81+ 1. Navigate to project' s root folder and run the command below:
82+
83+ ```bash
84+ go test ./azurebs/integration/...
85+ ```
8186
8287- To run it from scratch; create a new container, run tests, delete the container
8388 1. Create a storage account in your azure subscription.
8489 1. Get `account name` and `access key` from you storage account.
8590 1. Export `account name` with command `export azure_storage_account=<account name>`.
8691 1. Export `access key` with command `export azure_storage_key=<access key>`.
8792 1. Navigate to project' s root folder.
88- 1. Run environment setup script to create container `/.github/scripts/azurebs/setup.sh`.
89- 1. Run tests `/.github/scripts/azurebs/run-int.sh`.
90- 1. Run environment teardown script to delete test resources `/.github/scripts/azurebs/teardown.sh`.
93+ 1. Run environment setup script to create container ` . /.github/scripts/azurebs/setup.sh` .
94+ 1. Run tests ` . /.github/scripts/azurebs/run-int.sh` .
95+ 1. Run environment teardown script to delete test resources ` . /.github/scripts/azurebs/teardown.sh` .
0 commit comments