View UI test and unit test reports

You can view reports of your UI test and unit test runs directly in the main window. You control the structure of the reports and add attachments to the reports using the XCTest framework.

  1. In the Project navigator, select a test source code file to open it in the source editor.

  2. In the source editor, Control-Click a test status icon in the gutter, then choose Jump to Report from the pop-up menu.

    The test report appears in the editor area on the right.

  3. To reveal a test or activity, click the disclosure triangle.

    Use the XCTest activities APIs to logically group subtasks.

  4. To view a screenshot, open the assistant editor and select the screenshot attachment in the report.

    Use the XCTest screenshot APIs to attach screenshots to the report.

Alternatively, Control-click a test in the Test navigator, then choose Jump to Report.

See alsoRun UI tests and unit tests