Approaches to GUI test automation

It is important to organize your code into logical components for development and testing. Using the framework test features (or external support libraries) smaller components can more easily be verified through simple tests. The Go language's built-in support for testing has meant that test coverage is improving; in fact, the popular Go library list, awesome-go.com, asks that libraries have a test coverage of at least 80%! GUI toolkits, especially those newer ones discussed in Section 3Modern Graphical Toolkits, need to meet these expectations and allow developers using them to do so as well.

If your chosen framework does not provide the necessary support, it is still possible to automate functional testing. ...

Get Hands-On GUI Application Development in Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.