View and share test results

You can share a result bundle with a team member and they can open it in a standalone Report navigator without needing the associated project.

First run a UI test or unit test, then view the test reports in the Test navigator (). Control-click a test and choose Jump to Report from the pop-up menu to open the report.

Then show the result bundle in Finder and share the file with a team member. The team member can open a result bundle without the project. You can also view the objects in a result bundle using command-line tools.

Show the result bundle in Finder

  1. In the Report navigator (click the button), Control-Click a test or a test action (for example, Build or Log).

  2. Choose Show in Finder from the pop-up menu.

    The result bundle (a file with a .xcresult file extension) appears highlighted in Finder.

Alternatively, you can save a result bundle to a specified location by passing the -resultBundlePath flag to the xcodebuild command. For example, save the result bundle while building a test:

xcodebuild test -scheme [App Name] -project [Project file path] -resultBundlePath [Result bundle path]

For more options, enter man xcodebuild in Terminal.

Save a result bundle from the command-line

You can save a result bundle to a specified location by passing the -resultBundlePath flag to the xcodebuild command.

For more options, enter man xcodebuild in Terminal.

Open a result bundle without the project

Open a result bundle in the workspace

If you open a result bundle without the project open but you have the project folder on your Mac, you can open it in the workspace.

View the objects in a result bundle

You can get the contents of a result bundle by using the xcrun xcresulttool command in Terminal.

For more options, enter xcrun xcresulttool --help or man xcresulttool in Terminal.