New 42-day free trial Get it now
Smarty

HTML coverage reports with GoConvey

Smarty header pin graphic
Updated July 2, 2025
Tags
Smarty header pin graphic

You asked for it and now you've got it.

For packages that pass all tests, coverage reports are generated and made available by clicking the package name, which in that case becomes a link (provided you've cleared your browser's cache!).

Click the package name

Right now the coverage command that is run is something like this:

$ go test -covermode=set -coverprofile=<package_name>.txt

That command generates a plain text profile used in the following command:

$ go tool cover -html=<package_name>.txt -o <packge_name>.html

...which plunks down an html file which we can link to from the UI.

As you can see above, we use the 'set' covermode as it is more suited for concurrent scenarios and is the cheapest report to generate (thanks to Rob Pike for the advice on that one). We might support other values there if it's wanted (a phrase which here means comment below if you have strong feelings).

Here's what a bit of the report looks like (gradient of grey through green means covered, red means not covered):

Thanks to the go team for the go cover tool!

The coverage profiles and html files are stored at:

$GOPATH/src/github.com/smartystreets/goconvey/web/client/reports

Out of the way but available to you if you have plans for them. There's lots you can do with coverage in GoLang. Happy testing!

PS - Brand new shiny UI coming soon to GoConvey... (as if it wasn't good enough already!)

Subscribe to our blog!
Learn more about RSS feeds here.
Read our recent posts
What to look for in an address data solution: Data accuracy
Arrow Icon
Once you know what capabilities you need, the next challenge is choosing a provider that actually delivers—pun intended. This blog is part of our five-part series, What to look for in an address data solution. Previously, we discussed the need to find an address data solution that understands the importance of speed, scalability, and reliability, enabling you to maintain automated, efficient, and accurate workflows in any industry that deals with addresses. Today, we’ll focus on the hidden costs of inaccurate data, defining and combating the “validation gap”, and why it’s important in any industry.
Empowering finance, healthcare & insurance companies with international autocomplete
Arrow Icon
Address data plays a vital role for finance, healthcare, and insurance companies. When these companies serve customers worldwide, processes like KYC compliance, fraud prevention, and onboarding become even more complicated, making accurate data even more essential. Enter International Address Autocomplete, a form and checkout address-filling feature that saves the day for more than just ecommerce companies based in the US. It’s also great for finance, healthcare, and insurance companies worldwide.
What to look for in an address data solution: Speed, volume, and reliability
Arrow Icon
Not all address tools are created equal. The right platform should do more than validate—it should verify, enrich, and future-proof your data. This blog is part of our five-part series, What to look for in an address data solution. Previously, we discussed the hidden costs of poor address data, including misdeliveries, lost revenue, billing errors, and operational inefficiencies. These creep up because companies mistakenly assume that their CRM or ERP already validates and standardizes addresses.

Ready to get started?