Skip to content
Jon Reid edited this page Dec 24, 2015 · 12 revisions

Is OCHamcrest compatible with ____?

OCHamcrest's regular assertThat and assertWithTimeout is compatible with the following testing frameworks:

  • XCTest
  • OCUnit (SenTestingKit)
  • Kiwi
  • Cedar
  • GHUnit
  • Google Toolbox for Mac (GTM)
  • OCMock
  • OCMockito

Note that you can use any OCHamcrest matchers directly, apart from assertThat.

I'm getting an "unrecognized selector" error

See something like +[NSInvocation och_invocationWithTarget:selector:]: unrecognized selector sent to class? Then add -ObjC to the "Other Linker Flags" of your test target.

Clone this wiki locally