In this chapter, we explored some of the tips and techniques for managing a GUI-based application written with Go. By carefully planning the modules of an application and how they interact, we saw that we can make it easier to test and maintain. As higher test coverage is a factor in increasing the quality of software applications, we looked at how we can use these techniques to test our graphical code, which is a notoriously difficult topic. We stepped through an example of writing test code for a simple GUI application that could be run automatically.
From these basic concepts, we looked at how to prepare an application for regular automated testing to constantly check the code for errors (a technique called Continuous Integration). By leveraging a well-modularized code base, we can avoid relying on external services or creating accidental side effects when testing our...