/goth
Created
September 2, 2016 16:27
golang test coverage html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
go test -coverprofile=coverage.out | |
go tool cover -html=coverage.out |
go tool conver -html chtml.out
go tool cover -html chtml.out
In case anyone is seeing this issue. I needed to run 'go tool cover -html=coverage.out' in a bash terminal - it wouldn't work in my VSCode terminal on a Windows machine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go test -cover -coverprofile chtml.out
go tool conver -html chtml.out