You can repeat your test session, or individual tests without leaving your test runner tab of the Run tool window. The tests are performed again using the same run configuration as in the initial run.
In this topic:
- Rerunning a Testing Session
- Rerunning an Individual Test
- Rerunning a Failed Test
- Debugging a Failed Text
Rerunning a Testing Session
Do one of the following:
-
Click the rerun button
on the toolbar of the
Run
tool window.
- Use ⌘R or ⌘R⌃F5 or ⌃F5^ ⌥ R, ⌃⌥R or ⌃⌥R^ F5, ⌃F5 or ⌃F5 keyboard shortcut.
Rerunning an Individual Test
- In the testing tab of the test runner, right click a test case node or a test.
- On the context menu, choose .
Rerunning a Failed Test
- In the testing tab of the test runner, select a failed test.
- In the
Run toolbar, click
Rerun Failed Tests
.
Debugging a Failed Text
-
In the Test Runner tab, press ⇧ and click
Rerun Failed Tests
.
- Select Debug from the Restart Failed Tests popup.
The tests that have failed will be rerun in the debug mode.