Questions tagged [expecta]

A matcher library for unit testing in Objective-C / Cocoa.

Expecta is a matcher library for unit testing in Objective-C and Cocoa.

4 questions
10
votes
2 answers

How to unit test a UIViewController - TDD/BDD

Unit testing is just something I never seem to be able to get my head around but I can see why its important and can be a huge time saver (if you know what you're doing). I am hoping that someone can point me in the right direction. I have the…
Hodson
  • 3,438
  • 1
  • 23
  • 51
2
votes
2 answers

iOS/Mac OS fluent matching framework that works with Swift?

Is there a fluent matching API that works for Swift code? The leading Objective-C matcher candidates seem to be OCHamcrest and Expecta, both of which rely on complex macros that (as per the docs) aren't available to Swift code, e.g. #define…
David Moles
  • 48,006
  • 27
  • 136
  • 235
1
vote
0 answers

How can I test asynchronous delegate methods using Expecta/OCMockito?

I'm currently using Kiwi to write tests, but I'm interested in trying out Specta/Expecta/OCMockito (or another mocking library, if necessary). One thing I use Kiwi for is testing that delegate methods are called after some asynchronous work. For…
MaxGabriel
  • 7,617
  • 4
  • 35
  • 82
1
vote
2 answers

Xcode: Disable watch simulator when running app

I recently updated Xcode and now the watch simulator keeps starting every time I run my app on the regular simulator. How do I disable this?
bneil
  • 1,590
  • 3
  • 16
  • 26