Do you know about a good OCMock with GHUnit tutorial in the iPhone / iPad?
-
10-10-2019 - |
Question
I'm using GHUnit in my project and i need learn about OCMock for complete my Unit Tests (but i am new to this). I'm working with xcode 3.2.5
somebody knows about a good tutorial on OCMock?
Thanks.
Solution
I just did a quick google search for "OCMock" and it found a couple of small tutorials on OCMock. But not in combination with GHUnit. I use this combination and it works very well. OCMock has no problem working within the GHUnit framework. I have both of them in my projects as static frameworks. I'd also suggest have a read through the documentation on the OCMock website. Although I think it's a little light.
Ok, it's not a tutorial but take a look at the sources for dUsefulStuff and dXml. the code is pre me using static frameworks, but it does use both OCMock and GHUnit together. More so in dUsefulStuff which I started after dXml. dXml has around 130 unit tests and dUsefulStuff around 30 or 40 so there should eb enough to give you an idea. I should be updating both of these libaries soon.