Video description
There is a common adage on software testing that reads: "all software is guilty until proven innocent". This saying is a testament to how delicate applications can get, especially as they grow. Testing is a crucial part of the software development lifecycle to ensure that our apps instead stay strong as they grow.
In fact, testing is so important that some codebases have more test code than production code, and at times, many developers spend more time building and running tests than they do writing production code.
This chapter covers testing from front to back. It starts with the basics of the built-in testing libraries that come with the Go language, and moves on to more complex use cases and third-party libraries. It then dives into advanced topics like performance profiling and nested tests.
After this chapter, you'll know both the basics and advanced topics to write better, more effective tests with less code and effort.
* There are many less well known test features behind the scenes or buried in documentation. I recommend watching this chapter in full before writing your next test suite to learn how to use Go's test facilities properly
Table of contents
- Using Mocking to Build More Reliable Tests in Go 00:05:08
- Performance Profiling for Go Programs 00:05:56
- Writing Nested Tests in Go 00:10:23
- Testing With the Testify Suite Library 00:06:04
Product information
- Title: Advanced Testing and Debugging in Go
- Author(s):
- Release date: May 2020
- Publisher(s): Aaron Schlesinger
- ISBN: None
You might also like
video
Testing in Go
Having access to a reliable and comprehensive test suite for your applications isn’t a luxury anymore—it’s …
book
Network Programming with Go
Go combines the best parts of many other programming languages. It’s fast, scalable, and designed for …
book
Hands-On Dependency Injection in Go
Explore various dependency injection methods in Go such as monkey patching, constructor injection, and method injection …
video
Concurrency Exercises in Go
As Moore’s law reaches its limit, CPUs are no longer getting much faster. Instead, they are …