AppCode
 
Get AppCode
You are viewing the documentation for an earlier version of AppCode.

Create tests

Last modified: 21 July 2022

AppCode provides templates for creating unit and UI tests based on the XCTest framework. When creating a new project in AppCode, you can select if you want unit and UI tests to be added. In this case, AppCode creates test targets containing test classes with initial content. However, you can add test targets and test classes anytime after a project is created.

To quickly add stub code for methods in test classes, use the Generate menu⌘ N. This functionality is available for Objective-C only.

See examples of XCTest and Quick tests in the Unit testing in AppCode tutorial.