UnitTest (in memory) of multiple CoreData stores

Hi all,

I'm just switching my app to use a separate synchronized and local CoreData store.

Normally, for setting my SQLite as in-memory for utilization in UnitTests, I use the common setup of setting the URL to "/dev/null/":

container.persistentStoreDescriptions.first?.url = URL(fileURLWithPath: "/dev/null/")

Anyone an idea, how to use this approach when using multiple stores, as I can't link both persistentStoreDescriptions to the same URL?

Many thanks for your help.

Folox

UnitTest (in memory) of multiple CoreData stores
 
 
Q