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

If you see something like

+[NSInvocation och_invocationWithTarget:selector:]: unrecognized selector sent to class

then add -ObjC to the "Other Linker Flags" of your test target.