--- | |
layout: default | |
title: Support | |
tags: [] | |
status: publish | |
type: page | |
published: true | |
nosidebar: true | |
--- | |
<h1>{{ page.title }}</h1> | |
<h2>Asking for help / contributing</h2> | |
<p>The best option to get help with using OCMock is to ask a question on <a href="http://stackoverflow.com/questions/tagged/ocmock">StackOverflow</a> using the <a href="http://stackoverflow.com/questions/tagged/ocmock"><span class="tag">ocmock</span></a> tag. | |
<p>Please open issues on Github only when you suspect that you have encountered a bug in OCMock. If you have a question about OCMock or you have an issue with using it in your project, please ask on StackOverflow. | |
<p>Bug reports and pull requests are welcome. Please have a look at the <a href="https://github.com/erikdoe/ocmock/blob/master/CONTRIBUTING.md">contribution guidelines</a> before opening one. | |
<p>You can also contact the maintainer directly <a href="mailto:erik@doernenburg.com">by email</a> but please be aware that I am working on OCMock in my spare time and am unlikely to respond immediately. | |
<h2>Articles about mock objects</h2> | |
<p>These articles, posts, and papers are not specifically about OCMock, but they are a good source of information on how to use a mock framework effectively. | |
<h3><a href="http://www.mockobjects.com/2007/04/test-smell-everything-is-mocked.html">Test Smell: Everything is mocked</a></h3> | |
<p>A post that describes to common situations in which using mock objects may not be a great idea. | |
<h3><a href="http://www.davesquared.net/2011/04/dont-mock-types-you-dont-own.html">Don't mock types you don't own</a></h3> | |
<p>Good discussion of when to use mock objects. | |
<h3><a href="http://www.davesquared.net/2011/04/dont-mock-types-you-dont-own.html">Mock Roles, not Objects</a> [PDF]</h3> | |
<p>A paper by the people who pioneered the use of mock objects. Covers a lot of the thinking behind sensible user of mock objects. | |
<h2>Tutorials for OCMock</h2> | |
<h3><a href="http://erik.doernenburg.com/2008/07/testing-cocoa-controllers-with-ocmock/">Testing Cocoa Controllers</a></h3> | |
<p>A tutorial that shows how to test Cocoa controller objects without having to load the user interface from the NIB file. The objects defined in InterfaceBuilder are replaced with mocks. | |
<h3><a href="http://twobitlabs.com/2011/02/mocking-singletons-with-ocmock/">Mocking Singletons with OCMock</a></h3> | |
<p>The title says it all. Uses categories to allow substitution of system-provided singletons. | |