Add codecoverage to Acceptance README
This commit is contained in:
parent
9d569b3c11
commit
f9b24990d6
1 changed files with 8 additions and 0 deletions
|
|
@ -30,6 +30,14 @@ A full example invocation can be found below:
|
|||
GH_ACCEPTANCE_HOST=<host> GH_ACCEPTANCE_ORG=<org> GH_ACCEPTANCE_TOKEN=<token> test -tags=acceptance ./acceptance
|
||||
```
|
||||
|
||||
#### Code Coverage
|
||||
|
||||
To get code coverage, `go test` can be invoked with `coverpkg` and `coverprofile` like so:
|
||||
|
||||
```
|
||||
GH_ACCEPTANCE_HOST=<host> GH_ACCEPTANCE_ORG=<org> GH_ACCEPTANCE_TOKEN=<token> test -tags=acceptance -coverprofile=coverage.out -coverpkg=./... ./acceptance
|
||||
```
|
||||
|
||||
### Writing Tests
|
||||
|
||||
This section is to be expanded over time as we write more tests and learn more.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue