CLion 2020.1 Help

View and explore 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.

Use the Testing toolbar to customize visual representation of the test results.

View statistics

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

    Unit test statistics

View results of previous tests

CLion automatically saves results of the last 10 tests. To open the list of recent tests:

  • Click the Test History icon on the Test Runner toolbar 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 CLion, use the XML format.

To load the 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: 23 July 2020