Testpiler is an app that allows you to easily convert unit tests written in Swift from XCTest to the new Swift Testing framework. Simply add a folder containing your unit tests, or add individual test files. You can preview a diff of the proposed changes so you know exactly what will happen. When you're ready, you can convert each source file individually, or convert all selected files in a batch.
You can even fine tune migration options to fit your code style, such as whether the @Test attribute should be placed on a new line, or whether the `test` method prefix should be removed or kept.
Testpiler's migration engine is built on top of the Swift compiler, so it has a deep and robust understanding of your code, making migration accurate and easy. We take privacy seriously, so Testpiler runs entirely on-device and your source code is not sent to any servers. The app doesn't have any analytics included, so if you find an issue with the migrator, we appreciate receiving any code snippets we can use to improve the migrator over time.
Testpiler is a truly native Mac app written by indie developers for developers, and it's the best way to migrate your XCTestCases to Swift Testing today!
Testpiler is compatible with macOS 15 "Sequoia" on Intel and Apple Silicon
Macs.
The minimum system requirement is macOS 14 "Sonoma".