Data Infrastructure & Analytics
Go coverage with external tests

Go coverage with external tests

1/19/2016 · Filippo Valsorda

What this post added

This post introduces a technique for capturing Go test coverage data from end-to-end tests, which is not natively supported by the Go toolchain. It details a workaround involving a dummy test that executes the main function and compiles a binary with coverage enabled. The post also explains how to merge this coverage data with unit test coverage using `gocovmerge` for a more complete picture of code execution, specifically mentioning its application in the RRDNS project.

Read the original post ↗