Blog

We write about software development and our products

While trying to migrate some of our unit tests from XCTest to the new Swift Testing framework, we started to feel the process get very repetitive and mechanical. While there are edge cases, most of the time we were using find-and-replace features to port assertions one-to-one. And with that, Testpiler was born.

Instead of writing even more find-and-replace queries, we wrote a new Mac app that makes it easy to convert unit tests from XCTest to the Swift Testing framework. It’s built on top of the SwiftSyntax library and the Swift compiler, so it’s robust and has a deep understanding of your code. We then used it to convert the remainder of our unit tests, ensuring it works in real-life scenarios.

The app runs completely on-device and has no analytics or tracking included, and your code is not sent to any servers. This can be independently verified by using tools like Little Snitch.

We hope Testpiler makes test conversion a bit less mundane. You can try it for free today, only on the Mac App Store.