Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove unit testing from Xcode project?

When I created my iOS project in Xcode 5 I clicked the option to add testing to the project. Is it possible to remove all that testing stuff, just as though I hadn't clicked the option to begin with?

like image 401
Kent Avatar asked May 07 '14 22:05

Kent


People also ask

How do I delete a test in Xcode project?

You can either right click the test and delete or select the target then select the minus symbol ( - ) at the bottom of the Document Navigator pane. Hope this helps.

How do I turn off Xctest?

You can disable XCTests run by Xcode by right clicking on the test symbol in the editor tray on the left. You'll get this menu, and you can select the "Disable " option.

How do I delete a target in Xcode?

Simply right-click on the target and click on Delete. Thanks.


1 Answers

Xcode 7+

Click your project name in the Project Navigator. Then select your Tests target. Click the minus (-) button at the bottom to delete it. (Select everywhere in red in the image below.)

enter image description here

As mentioned in a comment earlier, it is a good idea to do Unit Testing (and UI testing) in your projects. So, if you want to add them back in then just click the plus (+) button.

See also

  • How to do a Unit Test in Xcode
  • Xcode UI Test example
like image 151
Suragch Avatar answered Sep 19 '22 15:09

Suragch