ocunit Questions
2
Solved
Is there a way to load a prototype cell, along with any IBOutlet connections as defined within a storyboard?
Update
I want to unit test the cell (a UICollectionViewCell for that mater), hence wou...
Freytag asked 7/3, 2014 at 17:46
4
Solved
I'm having some problems with my OCUnit test suite, when running application tests (i.e. on the device). Occasionally, I get a tricky error that seems to be thrown from the OCUnit classes. I've bee...
Edelsten asked 12/1, 2011 at 12:39
4
Solved
I'm working on an app that will display a UIAlertView upon hitting it's exit button, only if progress in the game has been made. I was wondering how you would use OCUnit to intercept the UIAlertVie...
Outskirts asked 22/5, 2011 at 5:36
2
Solved
I am in the process of migrating my project from Xcode 4.6.3 to Xcode 5.0.2. The project's unit tests were developed with SenTestingKit/OCUnit. Now when I am running the tests in Xcode 5, I get an ...
6
Solved
Im having a very sneaky issue in Xcode and its "Log Navigator".
I've recreated the issue like so; I have a very simple OCUnit test:
-(void)testSimpleFailure{
STFail(@"Please fail!");
}
I clea...
Fluidextract asked 9/12, 2011 at 16:32
4
Solved
My unit test suite contains a few test cases that are only applicable for the latest iOS version. Expectedly, these tests fail when running the suite on an older iOS version.
Is there a standard w...
Unbeliever asked 15/10, 2013 at 10:40
3
Solved
What's the quickest way to compare a NSUInteger with an int (e.g. 5) in objective-c?
Background - I'm noting that the following line of code gives an error:
STAssertEquals([nsMutableArrayInstance...
Eimile asked 28/4, 2011 at 5:26
2
Goal
Our goal is to execute our Unit Tests within a Continuous Integration environment (Jenkins)
(I believe it is essential for every question to state what exactly one is trying to achieve. Mayb...
Meaningless asked 12/3, 2013 at 17:18
5
Solved
I have been searching for a way to use SenTestingKit to do some integration testing between my client-side code and our server. I haven't had any luck. It seems that once the code is run in a metho...
Eogene asked 31/5, 2011 at 16:15
9
NOTE: "Use GHUnit" is not an acceptable answer to this question. I know most think GHUnit is better than the Xcode4 OCUnit, but that's not what I'm asking about. I'll evaluate that separately.
I h...
5
I've created a brand new iOS project in Xcode 4, and included unit tests. The default app has 2 targets, the main application and the unit test bundle. Using "Product > Test" (Command-U) builds the...
Impregnable asked 23/3, 2011 at 10:42
7
I have seen people posting about this here and elsewhere, but I haven't found any solution that works. I am using XCode 4.4 and have a bunch of unit tests set up. I have ran them all before on this...
Weslee asked 6/9, 2012 at 20:58
1
Solved
If I create a new project which includes unit tests, the test cases get called. But when I'm adding tests to an existing project I'm getting the following in the log:
2013-05-21 19:41:08.814 otes...
Fled asked 21/5, 2013 at 14:32
2
Solved
I just installed Xcode 4.6. When I run my OCUnit tests now, I get multiple lines with "profiling: invalid magic number" in the output window after all tests have finished. I'm pretty sure that Xcod...
5
Solved
I am using Xcode 3.2 on 10.6, with the shipped version of gcov and default GCC compiler (both version 4.2.1). I have created a dependent Cocoa unit test bundle which is injected into my app, and fo...
Discourtesy asked 6/9, 2009 at 12:30
3
Solved
I have an XCode workspace with a user interface project (UI) and a core logic project (Core). I want OCUnit unit tests in the UI project, so I have added a new target for testing, as is commonly do...
2
Solved
I'm trying to get to grips with OCTest, but can't seem to get it to actually run my tests (at least, I believe it's not running my tests). I've set up a project as described in the developer docume...
Corduroys asked 31/8, 2010 at 11:22
2
Solved
In Xcode, at the end of my unit tests I get a result like this:
Test Suite 'All tests' finished at 2012-12-06 10:23:38 +0000
Executed 195 tests, with 0 failures (0 unexpected) in 4.314 (4.485) sec...
Ori asked 6/12, 2012 at 10:42
1
Solved
I'm really struggling to understand unit testing. I do understand the importance of TDD, but all the examples of unit testing I read about seem to be extremely simple and trivial. For example, test...
Phocis asked 4/12, 2012 at 21:6
6
Solved
UPDATE: I ended up giving up and added GHUnit to my project instead. I got up and running with GHUnit in a matter of minutes.
UPDATE: You can download the Xcode project here: http://github.com/d11...
Bacchic asked 19/5, 2010 at 16:1
3
Solved
I'm using SFHFKeychainUtils to use Keychain Services in my app. I've written some OCUnit tests that verify the funcionality of this code. Everything works fine when I run the unit tests from Xcode ...
Feck asked 3/4, 2012 at 15:32
1
After some serious frustration and headaches, I've managed to add unit tests to an existing project. The problem is, the tests only get executed 50% of the time. I have a test method with an STFail...
Cortes asked 22/9, 2012 at 17:47
4
Solved
Is it possible to start an application test that runs in the simulator with a terminal command(s)?
Thanks
Bumpkin asked 6/7, 2011 at 12:58
2
Solved
I have an OCUnit Test class: PatientTestViewControllerTests. Below is the interface:
@interface PatientTestViewControllerTests : SenTestCase
@property (nonatomic, strong) PatientTestViewControlle...
Stormproof asked 26/7, 2012 at 17:59
4
Solved
I've created an iOS unit test target for doing logic tests following the steps provided in Apple's documentation.
However my build fails and i get the following error:
Undefined symbols:
"_OB...
Buatti asked 16/12, 2010 at 20:52
© 2022 - 2024 — McMap. All rights reserved.