How to write unit test cases for core data in swift4?
I am new to writing unit test cases, to understand core data unit test cases, I referred this link.
But while running unit test cases, If I select unit test cases at target membership (in "appDelegate" and "ToDoStorgeManager" files) then I am running unit test cases, it showing errors like "One of the two will be used. Which one is undefined." at same time app got crush. If I unselected unit test then its working fine as we expected.
Please look into below pictures at "Target Membership" section to get clarity about my question.
when I am writing unit test cases for independent classes, I am not facing above issue.But In core data I am facing issue with check and uncheck for unit cases in Target Membership.
Please help me to understand the above scenario.



