👩💻 Join our community of thousands of amazing developers!
Go developers have everything needed to start writing automated unit tests using the go test command baked directly into the compiler toolchain. By hooking into the testing package’s lifecycle and importing Docker’s client libraries, we can automate integration tests that manage their own Docker containers. See also: accompanying example code on GitHub. Unit Tests vs. Integration Tests Unit tests are automated processes that execute small, isolated pieces of code (e....