Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the full list of XCTest functions documented?

Tags:

xcode

xctest

I'm getting started with XCTest and only see bits and pieces of what is possible.

I know these functions:

XCTAssertEqualObjects
XCTAssertTrue

There is documentation in at "Unit Test Your App" https://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode_Overview/UnitTestYourApp/UnitTestYourApp.html

Also, I see the header file XCTestAssertions.h and some webpage here is http://iosunittesting.com/xctest-assertions/ and another at http://appleprogramming.com/blog/2013/12/26/xctest-assertions-documentation/

But is there primary and reliable current documentation for these functions?

like image 878
William Entriken Avatar asked Apr 29 '14 15:04

William Entriken


People also ask

Where is XCTest?

xctest can be found inside of the . app file, so in order to locate it, right-click the app and select Show in Finder. Right-click the app again in Finder and select Show Package Contents.

What is the correct sequence of the execution of the methods during the execution of XCTest?

XCTest runs the teardown methods once after each test method completes: first tearDown() , then tearDownWithError() , then tearDown() async throws .

What is the difference between XCTest and XCUITest?

XCTest / XCUITest is pure iOS and cannot help the team that needs to test both iOS and Android devices. XCUITest was built for the iOS and Xcode Developer in mind and focuses less on the QA Automation Engineer.

What is XCTest in iOS?

Overview. Use the XCTest framework to write unit tests for your Xcode projects that integrate seamlessly with Xcode's testing workflow. Tests assert that certain conditions are satisfied during code execution, and record test failures (with optional messages) if those conditions aren't satisfied.


1 Answers

Xcode 8 Update: XCTest now has official documentation.


I was able to extract an appledoc from the XCTest headers files and posted the documentation online. This has been last updated for Xcode 7.2.

Unofficial XCTest Documentation

like image 156
Joe Masilotti Avatar answered Oct 12 '22 07:10

Joe Masilotti