-
I'm having trouble with what I think should be a simple task for a dependency injection library. I feel like I am missing something. My app uses Core Data and I have created a How can I create a fresh I know I could wrap every test in a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @mplorentz, I'm not super familiar with the specifics of CoreData anymore, but there's no need to use |
Beta Was this translation helpful? Give feedback.
Hi @mplorentz, I'm not super familiar with the specifics of CoreData anymore, but there's no need to use
withDependencies
in each individual test method. You can do it once for all tests in a class by overridinginvokeTest
. We have some docs here:swift-dependencies/Sources/Dependencies/Documentation.docc/Articles/OverridingDependencies.md
Lines 127 to 134 in b323c53