Built-in Testing in Go Is More Than Just Passable

A presentation at KCDC 2021 in in Kansas City, MO, USA by Scott McAllister

Testing is vital to any software project. Automated tests help improve confidence in code changes as you increase project velocity. Finding the right tools and libraries can be an arduous process. And, in most languages, adding testing means adding a pile of new dependencies to the project. But, have you ever tried the tools built right into the language? One of the beauty’s of the Go programming language is built with productivity in mind. The creators of the language have included many tools that make developers productive—including a robust testing framework. Come see how easy it is to get started with Go’s testing library and see many of the features that will keep you using it in all your projects.

Resources

The following resources were mentioned during the presentation or are useful additional information.

  • go-test-demos

    Sample code that illustrates the type of testing discussed in the talk and simple examples for how to do it.

  • go-pagerduty

    Project that shows more “real world” examples of testing in Go. This code was also talked about in the talk.