ocunit
how to run application testing using Xcode 4 and OCUnit?
I am using OCUnit to write unit test, i tried GHUnit but it does not suit my case. I do want to run a application test because my code heavily relied on my ApplicationDelegate instance. But开发者_Sta[详细]
2023-03-09 05:28 分类:问答iOS unit test: How to set/update/examine firstResponder?
How do you write first responder unit tests? I\'m trying to write a test to confirm that a method advances focus to the next text field. controller is a descendant of UIViewController. But this explo[详细]
2023-03-07 21:59 分类:问答How to setup iOS UI tests as build dependency, like OCUnit?
I\'d like to add UI tests to an iOS project, in the same manner as OCUnit tests. I know there is the Instruments + UIAutomation JavaScript approach, but I don\'t see how that fits into an automated bu[详细]
2023-03-07 19:13 分类:问答Using OCUnit to test if an UIAlertView is presented
I\'m working on an app that will display a UIAlertView upon hitting it\'s exit button, only if progress in the game has been made. I was wondering how you would us开发者_StackOverflowe OCUnit to inter[详细]
2023-03-07 18:59 分类:问答OCMock throwing NSInternalInconsistencyException when parameters are not the ones expected
I\'m setting up a mock object for a delegate object, to check that whenthe URL is nil, the delegate method is called with nil as parameters.[详细]
2023-03-03 16:06 分类:问答Objective C - OCMock and stubbing?
Is it possible to have an actual obje开发者_运维百科ct of a class and only mock a method in that class instead of mocking the whole object?[详细]
2023-03-02 15:46 分类:问答STAssertEquals NSTimeIntervals
I\'m write unit test cases for my cocoa class. Below is the test case. I can\'t figure out why this test case fails, even though the expect and diff in the assert message are the same. I suspect it ma[详细]
2023-03-02 09:11 分类:问答Is there a way to "Test" current file in Xcode4?
Is there a way to \"Test\" current f开发者_如何学编程ile in Xcode4? That is if you are writting your 10th unit test, but rather than going TEST and having all unit tests run, you want to only trigger[详细]
2023-03-01 09:26 分类:问答getting "unrecognized selector" when trying to use Core Data managed object XCode generated class in unit test?
Why am I getting \"unrecognized selector\" when trying to use Core Data managed object XCode generated class in unit test?[详细]
2023-03-01 04:16 分类:问答Unit Test can't find Core Data model file
I\'ve created a project with a Core Data model in it. The application looks for the model file (.momd) a开发者_JAVA技巧nd runs just fine.[详细]
2023-02-25 08:24 分类:问答