Company
Date Published
Author
Gilly Barr
Word count
476
Language
English
Hacker News points
None

Summary

Gilly Barr discusses the challenges and solutions for running UI tests at Logz.io using the Intern framework and Selenium, facilitated by a Jenkins build server and Docker machines to perform UI tests after each commit. This process, while essential for deployment reliability, is fraught with "flaky tests" and bugs that arise in the Jenkins environment due to timing issues, which are not present when tests are run locally. To address these, Barr developed a method to wrap each web page object with a proxy called MethodLogger, which logs each method call to better pinpoint where a test fails, thus avoiding the time-consuming process of debugging with numerous console.log() statements. This innovation streamlines the testing process by providing clearer insights into the specific points of failure within the UI tests.