AppCode 2019.3 Help

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.

Tests in the Run tool window
  • To navigate between failed tests, use the Next Failed Test/ Previous Failed Test buttons or press ⌥⌘↑/⌥⌘↓.

  • To navigate between problem locations from the stack trace, use the Next Failed Test/ Previous Failed Test 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 Options 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

  1. 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

  1. Open a test class in the editor.

  2. From the main menu or the editor context menu, select Navigate | Test Subject. Alternatively, press ⇧⌘T.

    The test subject for the current test class opens in the dedicated tab of the editor and gets the focus.

View test results

Show passed and ignored tests

By default, AppCode doesn't show passed tests.

  • To show passed tests, click the Show Passed button.

  • To show ignored tests, click the Show Ignored button.

Sort tests

  • To sort tests alphabetically, click Sort Alphabetically.

  • To sort tests by their duration, click Sort by Duration.

View statistics

  • To view the execution time for tests, click  the Settings button on the toolbar and click the Show Inline Statistics option.

    Show Inline Statistics: OFF

    Show Inline Statistics: ON

    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 Test History icon, and select the necessary test from the list. For each test, the list displays the run configuration name and a time stamp.

    Viewing results of previous tests

    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 Export Test Results 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 Import Tests from File and then select the required XML file in the dialog that opens.

Last modified: 6 February 2020