Skip to content

Commit

Permalink
Document how to run tests in VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Feb 13, 2020
1 parent 6c2663f commit c3bc836
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -24,3 +24,17 @@ export GH_TOKEN=MYDUMMYPERSONALGHTOKEN
export GH_TOKEN=MYDUMMYPERSONALGHTOKEN
go test -v ./...
```

To run the tests from *VSCode* you will have to put the following setting in place. *Please do this in the *global settings*, to prevent you commit this setting, as it has to be an absolute path which differs for each contributor.*

```json
{
"go.testEnvFile": "/Users/marco/code/.go.env",
}
```

Then in the `.go.env` file you define the environment variable `GH_TOKEN` as following.

```shell
GH_TOKEN=MYPERSONALGHTOKEN
```

0 comments on commit c3bc836

Please sign in to comment.