Difference between Logic Test and Application Test in Xcode?

前端 未结 2 1641
没有蜡笔的小新
没有蜡笔的小新 2021-02-13 12:09

In Xcode when you create a new objective c unit test case, it asks you to choose between \"Logic\" test and \"Application\" test. What\'s the difference?

2条回答
  •  旧巷少年郎
    2021-02-13 12:40

    The Logic Test part is for doing White Box testing; it allows you to test things at a more granular level.

    Application Test is more like Black Box testing where you check that interactions with UI controls and the UI of your application is giving you the expected results/behavior.

提交回复
热议问题