Skip to content

Commit 66add88

Browse files
Improve documentation on running tests
1 parent 931473a commit 66add88

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,16 @@ $ $GOPATH/bin/terraform-provider-gitlab
4848
...
4949
```
5050

51-
In order to test the provider, you can simply run `make test`.
51+
### Running tests
52+
The Terraform Provider only has acceptance tests, these can run against a gitlab instance where you have a token with administrator permissions (likely not gitlab.com).
53+
There is excellent documentation on [how to run gitlab from docker at gitlab.com](https://docs.gitlab.com/omnibus/docker/)
5254

53-
```sh
54-
$ make test
55-
```
55+
In order to run the full suite of acceptance tests, export the environment variables:
5656

57-
In order to run the full suite of Acceptance tests, run `make testacc`.
57+
- `GITLAB_TOKEN` //token for account with admin priviliges
58+
- `GITLAB_BASE_URL` //URL with api part e.g. `http://localhost:8929/api/v4/`
5859

59-
*Note:* Acceptance tests create real resources, and often cost money to run.
60+
and run `make testacc`.
6061

6162
```sh
6263
$ make testacc

0 commit comments

Comments
 (0)