AppCode
 
Get AppCode

Create tests

Last modified: 11 January 2023

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 menuAlt+Insert. This functionality is available for Objective-C only.

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