Application Tests VS Logic Tests

后端 未结 1 896
陌清茗
陌清茗 2021-02-01 17:49

Since application tests can now be run on the simulator from Xcode, what would the advantage be, apart from possibly a small saving in execution time, of still separating your t

相关标签:
1条回答
  • 2021-02-01 18:14

    Application tests compared to logic tests are really used for two different things:

    Logic tests/unit tests are used to test very small behavior for one or a few methods, e.g. "Given that I create my object like this, is the value of a certain property what I expect it to be?"

    Application tests however are used to test the big picture, e.g. "Do I get the right data in my detail view when I tap on a certain table view cell?"

    0 讨论(0)
提交回复
热议问题