Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 285a961

Browse files
committed
Merge pull request #532 from rickard-von-essen/clearify_docs_about_tags
Updated docs to provide information about tags needed to run tests.
2 parents de2b782 + f66314b commit 285a961

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ As a contributor you will need to setup your workspace in a slightly different
1111
way than just downloading it. Here are the basic installation instructions:
1212

1313
1. Configure your `$GOPATH` and run `go get` as described in the main
14-
[README](/README.md#how-to-install).
14+
[README](/README.md#how-to-install) but add `-tags "fixtures acceptance"` to
15+
get dependencies for unit and acceptance tests.
1516

1617
2. Move into the directory that houses your local repository:
1718

@@ -158,25 +159,25 @@ deleted after the test suite finishes.
158159
To run all tests:
159160

160161
```bash
161-
go test ./...
162+
go test -tags fixtures ./...
162163
```
163164

164165
To run all tests with verbose output:
165166

166167
```bash
167-
go test -v ./...
168+
go test -v -tags fixtures ./...
168169
```
169170

170171
To run tests that match certain [build tags]():
171172

172173
```bash
173-
go test -tags "foo bar" ./...
174+
go test -tags "fixtures foo bar" ./...
174175
```
175176

176177
To run tests for a particular sub-package:
177178

178179
```bash
179-
cd ./path/to/package && go test .
180+
cd ./path/to/package && go test -tags fixtures .
180181
```
181182

182183
## Basic style guide

0 commit comments

Comments
 (0)