Skip to content

Commit 9a88dd7

Browse files
committed
Add the configuration to use the integrated UI in vscode
1 parent 24455a9 commit 9a88dd7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

provider/CONTRIBUTE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,20 @@ ARM_TEST_LOCATION_ALT=<AZURE_LOCATION_2>
128128
TF_ACC=1
129129
```
130130

131+
If you would preffer to use the UI to launch the tests, it is aso possible to specify the environment variables used by vscode integrated testing by modifying the settings.json. Two options are available
132+
* Use the built in variables definition:
133+
```json
134+
"go.testEnvVars": {
135+
"ARM_CLIENT_ID" : "<YOUR_SERVICE_PRINCIPAL_CLIENT_ID>"
136+
...
137+
...
138+
},
139+
```
140+
* Use the contents of a file as `private.env`
141+
```json
142+
"go.testEnvFile": "${workspaceRoot}/.vscode/private.env"
143+
```
144+
131145
*Note: it is possible to customize the logging level of Terraform. It might be super useful in some situations. It can be done by setting the `TF_LOG` environment variable. Refer to [the official debugging documentation](https://www.terraform.io/docs/internals/debugging.html) for more details.*
132146

133147
Once done, you can just press F5 and the debug will start! You can place breakpoints in your code to do step by step debugging:

0 commit comments

Comments
 (0)