Test Coverage of Go Services during Integration Tests

About our integration tests

  • compile services with go test -c,
  • add an http killswitch
  • run services & run tests
  • stop the services by calling the http killswitch endpoint
  • collect coverage reports from containers
  • merge them with gocovmerge.
  • get a code coverage percent. Conclusion & Example code

Part I: Compiling services with go test instrumentation

Part 2: Running in our Kubernetes Cluster

Part 3: Collecting Coverage





What’s your inner greatness?

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Manabie Tech-Product Blog

Manabie Tech-Product Blog

What’s your inner greatness?

More from Medium

Kubernetes Horizontal Auto Scaling with Golang microservice — Hands-on

Jaeger Tracing: A Friendly Guide for Beginners

Kubernetes: Perform a task only in one instance of a multi-instance microservice deployment

Leader lection image

Using assert in go tests