Issues with libraries used by main app and cedar tests

10 views
Skip to first unread message

J

unread,
Jul 8, 2015, 5:03:45 PM7/8/15
to cedar-...@googlegroups.com
Specifically HockeySDK

I have #import <HockeySDK/HockeySDK.h> in my app delegate.. 

I have a Cedar test that will spy on the Hockey shared manager and check for it's methods to be called.

My problem:
When I have the HockeySDK pod set to my main app target, I get an error that my tests can't find HockeySDK(This makes sense, it's not targeted)

Wen I target the pod to both the app AND tests, my unit tests fail because it seems to have 2 different shared manager objects, one created by the app execution and another created by cedar, so when I check for methods called on it, it fails. 

Is there a solution to this?

Andrew Kitchen

unread,
Jul 10, 2015, 6:49:12 PM7/10/15
to cedar-...@googlegroups.com
Hello,

Is there anything about this that is specific to Cedar? Or is this a matter of having common cocoapods dependencies in a test bundle as well as the main app target?

I believe there are common podfile organization strategies people use for this; hopefully someone can chime in with a recent example.  I don't have one offhand.

-Andrew

--
You received this message because you are subscribed to the Google Groups "Cedar Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cedar-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages