Work with test results
After you run a test, the Run tool window displays the Test Runner tab with the results of your testing session. On this tab, you can view statistics of the tests, navigate to stack trace, show or hide successful tests, and more.
Navigate between tests and source code
Navigate between tests
To navigate between failed tests, use the / buttons or press ⌥⌘↑/⌥⌘↓.
To navigate between problem locations from the stack trace, use the / buttons on the right toolbar.
Jump to source code
To jump to the test's source code, double-click the test in the tree or press ⌘↓.
If you want to go to the source code every time you click a test in the tree, click and select Navigate with Single Click.
To jump to the problem location from the stack trace, click the hyperlink.
Jump from a class or file to its test
Open a test class in the editor. If you want to navigate from the method to its test, position the caret at this method.
Jump from a test to its test subject
Open a test class in the editor.
- From the main menu or the editor context menu, select
The test subject for the current test class opens in the dedicated tab of the editor and gets the focus.. Alternatively, press ⇧⌘T.
View test results
Show passed and ignored tests
By default, AppCode doesn't show passed tests.
To show passed tests, click .
To show ignored tests, click .
To sort tests alphabetically, click .
To sort tests by their duration, click .
To view the execution time for tests, click on the toolbar and click the Show Inline Statistics option.
Show Inline Statistics: OFF
Show Inline Statistics: ON
View results of previous tests
AppCode automatically saves results of 10 last tests.
To view them, click the icon, and select the necessary test from the list. For each test, the list displays the run configuration name and a time stamp.
You can also export test results to a file if you want to keep them or share with your team.
Export and import test results
Export test results to a file
Click on the test runner toolbar, select the format in which you want to save the file, and specify its name and location.
If you want to open this file later in AppCode, use the XML format.
Import test results
To load a previously exported file, click Import Tests from File and then select the required XML file in the dialog that opens.