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
Swift Testing is a new framework with expressive and intuitive APIs that make testing your Swift code a breeze.| Apple Developer
Specify different input parameters to generate multiple test cases from a test function.| Apple Developer Documentation
Create and run unit tests, performance tests, and UI tests for your Xcode project.| Apple Developer Documentation