Summary

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 software. We saw how Dependency Injection can improve our test reliability and speed up the process for more immediate feedback. Finally, we saw how to apply our knowledge to handling operating-system-specific functionality within our graphical apps.

In the next, and final, chapter, we will look into the last step of the development process: packaging and sharing the compiled application. We will explore the various options available for each platform and how these channels can benefit, or complicate, our cross-platform strategy.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.186.178