Reputation: 5890
I'm having trouble clearing the test results for unit tests in Xcode 4. Basically, I ran a unit test which results in normal warnings. But, when I switch to regular bundle and run a build, the unit test results are still sticking around.
Is there any way to clear them from the Issue Navigator?
Basically, I want a way to clear the Issue Navigator.
Upvotes: 32
Views: 7929
Reputation: 21383
As of Xcode 12.5, there's a new menu item under the Product menu called Clean Test Results with a default keyboard shortcut of control-option-command-K. That will clear the red/green badges from all tests.
Upvotes: 12
Reputation: 20600
Delete all the logs in ~/Library/Developer/Xcode/DerivedData/<project>/Logs/Test
PS: the easiest way to shortcut to this folder within Xcode is:
Upvotes: 3
Reputation: 351
After writing Kiwi BDD tests I have to completely close my project and reopen it to clear test cases in the Test navigator.
Upvotes: 17
Reputation: 5890
To answer my own question. It appears you have to switch back to the Unit Test scheme, clear the build folder, then switch back to the project to keep the issues from popping back up.
Upvotes: 10