All tags

How to measure code coverage in Go

Sep 06, 2019
4 min read

Code coverage is a first class citizen in Go. However programmatically getting the total code coverage for multiple packages within a single project can be tricky. Learn how to retrieve the overall code coverage by using standard Unix command line tools like grep and awk connected via pipes.