3 ms·
That's neat! But how is everyone testing their Swift codebases? We've found the story around testing to be... lacking. The [docs](https://developer.apple.com/d
by jamilbk 3y ago
That's neat!
But how is everyone testing their Swift codebases? We've found the story around testing to be... lacking. The [docs](https://developer.apple.com/documentation/xctest https://developer.apple.com/documentation/xctest) on the subject are pretty bare and don't offer strategies for mocks, stubs, reporting, code coverage, etc.
And good luck if your app uses a Network Extension... those must be tested on a live physical device due to the signing restrictions!
On that note, does anyone know of a good physical device CI service that supports both iOS and macOS devices?
- suraj 3y agoTake a look at https://github.com/apple/swift-testing https://github.com/apple/swift-testing It is under active development as Swift first replacement for xctest. For CI service, Xcode cloud does support running tests on mac and iOS hardware. https://developer.apple.com/xcode-cloud/ https://developer.apple.com/xcode-cloud/
- plorkyeran 3y agoXcode Cloud doesn’t actually support running tests on devices. Some of the marketing tries to imply that it does, but it’s simulators only.