sentestingkit Questions
5
Solved
I am using the SenTestingKit to Unit Test, but I get the following message
Logic Testing on iOS devices is not supported. You can run logic tests on the Simulator.
How can I do this?
Clericalism asked 10/12, 2011 at 6:41
4
Is there an Xcode keyboard shortcut to jump from MyObject.m to MyObjectTests.m, and vice versa? If so, what is it?
Photochemistry asked 17/8, 2011 at 20:10
2
Is there a way to force a specific locale when running unittests?
Eg. always use en_US or force no locale, so that none of the .lproj files are loaded.
My unittest is sensitive to the currently s...
Girdle asked 29/7, 2013 at 16:15
5
Solved
I'm trying to test code that reads and alters the keychain using the basic SenTest framework on Xcode. The code works fine on device, but when I start the test I get these errors every time I want ...
Achromatize asked 27/2, 2014 at 23:32
3
Solved
I have a pre-existing project to which I've added Core Data models. I added the Core Data framework, added a data model with entities, and included it in my app's target, along with some generated ...
Confection asked 30/10, 2011 at 7:9
2
Solved
I'm trying to write unit tests for json validation (since the app heavily relies on json from a rest API).
I have a local file that contains simple json: "goodFeaturedJson.txt"
The contents:
{
...
Ephor asked 15/5, 2013 at 17:6
6
Solved
I've been following this blog post: Adding unit tests to existing project.
I'm getting this error however:
ld: file not found:
Build/Products/Debug-iphoneos/MyApp.app/MyApp
Command
/Develop...
Wallaroo asked 5/3, 2012 at 22:59
5
Solved
I was having some trouble unit testing some grand central dispatch code with the built in Xcode unit testing framework, SenTestingKit. I managed to boil my problem done to this. I have a unit test ...
Amary asked 19/10, 2011 at 3:13
3
Is there a way of ignoring a specific test case without commenting it out?
Some tests are written before the implementation exists, so before commiting any code I'd like to first flag these tests ...
Taylor asked 24/10, 2012 at 10:40
11
I have set up an XCode 5 iOS 7 project for unit tests.
Of course, setting up the unit tests are taking me so long that I'm trying to keep the faith that it's worth it. Struggling for hours over th...
Sisak asked 16/8, 2013 at 5:52
6
Solved
Since earlier today, I cannot get my tests to pass when running them from Xcode 5. I know all the tests are passing, because I can run them from command line (well, a CI Job) and they're all passin...
Descriptive asked 24/9, 2013 at 21:53
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
3
I want to do unit testing in iOS. By default test classes are created using XCTest framework classes in Xcode 5. I have used SenTestingKit in earlier versions of iOS. What are the differences betwe...
Flocculent asked 17/9, 2013 at 16:16
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
6
Solved
This is related to my previous question, but different enough that I figured I'd throw it into a new one. I have some code that runs async on a custom queue, then executes a completion block on the...
Chromaticity asked 19/10, 2011 at 6:55
1
How do I make the test host/bundle loader dynamic based on the current scheme? Right now the value is set to:
$(BUILT_PRODUCTS_DIR)/MyApp1.app/MyApp1
The problem is I have 4 apps in the workspac...
Dissimilation asked 15/7, 2013 at 16:56
2
Solved
I'm developing a database-access library and I'm trying to check for memory leaks using already-written unit tests.
These are logic tests based on SenTestingKit, set up the normal way in Xcode 4.2...
Selfexpression asked 9/6, 2012 at 15:51
1
Solved
I've created a map-based app for the iPhone, and recently submitted it to the store. I had no trouble running the app on the device or simulator. However, the store rejected it because it crashed o...
Greening asked 26/2, 2012 at 18:49
3
Solved
I read the question Easy way to see saved NSUserDefaults?
I found the .plist file for the app, but where's the one for the testing bundle?
Gilud asked 31/5, 2011 at 21:10
1
The only solution I seem to be able to find for testing for exceptions is using SenTestingKit's STAssertThrows and STAssertThrowsSpecific, however in both cases when the exception is thrown the app...
Demeanor asked 28/9, 2011 at 15:13
1
© 2022 - 2024 — McMap. All rights reserved.