Skip to content

Commit bd9b08c

Browse files
authored
Contributing (#65)
* [docs update] How to view test coverage.
1 parent d798ec6 commit bd9b08c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,18 @@ go test firebase.google.com/go/...
137137
```
138138

139139
This will execute both unit and integration test suites.
140+
141+
### Test Coverage
142+
143+
Coverage can be measured per package by passing the `-cover` flag to the test invocation:
144+
145+
```bash
146+
go test -cover firebase.google.com/go/auth
147+
```
148+
149+
To view the detailed coverage reports (per package):
150+
151+
```bash
152+
go test -cover -coverprofile=coverage.out firebase.google.com/go
153+
go tool cover -html=coverage.out
154+
```

0 commit comments

Comments
 (0)