Are test libraries available for Objective-C?

I want to use the BDD approach for unit testing in an iOS project, and I just realized that there cannot be an existing library that provides test twins test spy . Ideally, I'm looking for something similar to Mockito , Jasmine , or RR .

Before I go and spend a week of free time writing a test spy library, I thought that I would first ask the question about SO.

So far I have looked at OCMock and Kiwi , but both of them seem to be traditional high-level standard frameworks that require statements of expectation to organize the phase before the action phase . Obviously, this interferes with my vision of fine, DRY , nested specifications (which I plan to create in Kiwi or Cedar ).

+3
source share
1 answer

.

. , "" .

, , . ( , ), , -[KWMock forwardInvocation:].

, -[KWMock forwardInvocation:] , / , , , . , , . , .

/ , / . , , NSInvocation, .

, , . .

+2

Source: https://habr.com/ru/post/1796571/


All Articles