How to write Unit Tests with Core Data in Swift

preview_player
Показать описание
In this video we look at some of the challenges we face when writing unit tests for Core Data, along with how to overcome them.

Source code

Book

Twitter
@jrasmusson

Courses

Level Up AutoLayout

Level Up in Swift
Рекомендации по теме
Комментарии
Автор

Any other topics you would like to see covered? Let me know :)

swiftarcade
Автор

5:50 this helps greatly! Main thread vs background thread requirement for updating the UI. Thanks a lot.

dhavalnena
Автор

Hello, your tutorial is excellent. I have spent months ramping up to SwiftUI for iOS app testing. I am a conventional Java UI full stack tester using Selenium/Cucumber. I now have to work with native framework testing within XCode/Swift code libraries. Question: I want to have an isolated Core Data setup just for the test bundle. Is there a way to do that? The idea is to have test data separated from the main app that I will use for testing rigorously. The test data can get complicated with thousands of objects over time.

manuelsteele
Автор

In unit test i received these warnings/ error

[DataItemEntity entity] Failed to find a unique match for an NSEntityDescription to a managed object subclass

tutecodes
Автор

this is fcking awesome! thanks a lot !

mex