Top "Xctest" questions

XCTest is an Apple-provided framework which implements unit testing functions.

Xcode7 | Xcode UI Tests | How to handle location service alert?

I am writing UI Test Cases for one one of my app using the XCUIApplication, XCUIElement and XCUIElementQuery introduced in …

xcode xctest ios9 xcode7-beta4 xcode-ui-testing
Can't import main swift classes into test target?

I am trying to test the classes in my iOS app. I am trying to import the target Pickle in …

ios xcode swift import xctest
Is it possible to run XCTest based tests under Instruments in Xcode 5?

Looking at XCTest and Xcode 5 unit testing and not seeing how to run my unit tests under Instruments in Xcode 5... …

xcode5 xcode-instruments xctest
Testing assertion in Swift

I'm writing unit tests for a method that has an assertion. The Swift Language guide recommends using assertions for "invalid …

unit-testing swift xctest
How to test a sendAsynchronousRequest: on XCTest

Sorry for the noob question, but I'm trying to test a connection, but I'm not able do verify the return …

iphone objective-c sendasynchronousrequest xctest
Error with XCTestExpectation: API violation - multiple calls made to -[XCTestExpectation fulfill]

I'm using XCTestExpectations in Xcode 6 (Beta 5) for asynchronous testing. All my asynchronous tests pass individually every time I run them. …

unit-testing asynchronous ios8 xcode6 xctest
IBDesignable Errors When Adding to Tests Target

I have a simple UIButton subclass that implements IBDesignable with an IBInspectable var: @IBDesignable class Button: UIButton { @IBInspectable var borderColor: …

ios swift xcode xctest ibdesignable
What is the proper way to detect if unit tests are running at runtime in Xcode?

When I'm running unit tests, I'd like to skip some code (e.g. I don't want [[UIApplication sharedApplication] openURL:..] to …

objective-c ocunit xctest
Adding Swift files to test target not fixing unit tests

I have looked at a lot of blogs and tried many things to get my Swift unit tests to work …

ios unit-testing swift access-control xctest
Use of Unit Test in Xcode 5

I am writing my first bigger iOS project and I want to use as much of Xcode 5 as possible. Now …

xcode5 xctest