Abstract
We then face the problem of how to write automated tests for the HTML parts of our applications. While the JavaScript world has evolved powerful and sophisticated ways to test the UI, ranging in size from unit-level to integration to end-to-end, in other languages we do not have such a richness of tools available.
It is certainly possible to test the UI indirectly through end-to-end tests, but those tests are slow and expensive. In this session we will see how to write fast, laser-focused unit tests on our HTML templates, to prevent subtle (or not-so-subtle) errors that can be overlooked by manual or end-to-end testing.
The technique is simple and fun, based on standard Go templates and with the help of the goquery library.