Here is Code Coverage information for Secret Management Service
We are currently at 5470.4%8%
Here is a HTML browser for the code and coverage within:
coverage.html
The same coverage reported from the command line:
Image Removed
Instructions on how to generate coverage:
Code Coverage Reports for Golang Applications
This document covers how to generate HTML Code Coverage Reports for Golang Applications.
Code Block |
---|
language | bash |
---|
title | Generate and run a test executable which calls your main() |
---|
linenumbers | true |
---|
|
go test -c -covermode=count -coverpkg ./...
./sms.test -test.run "^TestMain$" -test.coverprofile=coverage.cov |
Code Block |
---|
language | bash |
---|
title | Run your Unit tests for their coverage |
---|
linenumbers | true |
---|
|
go test -test.covermode=count -test.coverprofile=unit.out ./... |
Code Block |
---|
language | bash |
---|
title | Merge coverage Reports |
---|
linenumbers | true |
---|
|
go get github.com/wadey/gocovmerge
gocovmerge unit.out coverage.cov > all.out |
...
language | bash |
---|
title | Generate Reports |
---|
linenumbers | true |
---|
...
Image Added