How to delete an Xcode Swift Test Class from the Test navigator?

前端 未结 3 955
名媛妹妹
名媛妹妹 2021-02-19 06:42

The Xcode Test navigator shows a list of test case classes.

I want to delete a test case class because it\'s no longer needed.

I\'ve tried many typical approach

3条回答
  •  不要未来只要你来
    2021-02-19 07:14

    If you want to delete just a single test class, you can click on the file name in the Project Navigator and press Delete and Move to Trash.

    If you want to delete then entire Testing bundle, click your project name in the Project Navigator. Then select your Tests target. Click the minus (-) button at the bottom to delete it.

    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

提交回复
热议问题