A Journey of Maintaining Device Farms for E2E Testing| trinhngocthuyen.com
Subscribe to this substack| trinhngocthuyen.com
Introduction Five years ago, I wrote a blog post about extracting test methods before runtime in iOS. This falls under a broader category of test discovery - the process of identifying test cases in a codebase. While test discovery is relatively straightforward in scripting languages, it is more challenging in iOS and other statically typed languages. For a Swift package project, this can be done with the swift test list command.| trinhngocthuyen.com
We often hear that automating repetitive tasks improves productivity. But how do we decide when automation is truly worth the effort? 1 At OKX, while managing end-to-end testing servers, I frequently needed to SSH into servers to diagnose issues and retrieve relevant logs (to my local) for further investigations. This was tedious but manageable, thanks to my terminal’s auto-completion. However, as we expanded to four servers (two in Hong Kong, two in Singapore), keeping track of server IPs,...| trinhngocthuyen.com
A Journey of Maintaining Device Farms for E2E Testing| trinhngocthuyen.com
Introduction Swift Testing is a new test framework introduced by Apple at WWDC 2024. It offers a range of macro-based features, making test writing more expressive. One of the key features driving migration from XCTest to Swift Testing is parameterized testing. While this concept has been widely available in other languages (ex. pytest introduced it in 2011), Swift Testing now enables repeated test execution with different inputs and expected outputs.| trinhngocthuyen.com