
Go coverage with external tests
1/19/2016
This post introduces a hack for obtaining test coverage data for end-to-end tests in Go. It involves creating a dummy test that executes the main function, compiling a binary with `go test -coverpkg="..." -c -tags testrunmain`, and then executing this binary with specific test flags to collect coverage information. It also mentions using `gocovmerge` to merge coverage profiles from unit and end-to-end tests.


