开发者

Xcode - logictest vs applicationtest

开发者 https://www.devze.com 2023-02-15 08:46 出处:网络
I am building my first iPhone app, and I开发者_如何转开发 want to get started with unit testing.

I am building my first iPhone app, and I开发者_如何转开发 want to get started with unit testing. Been reading up on it and there are two sides to it. logictests and applicationtest. logictest seems to me like regular unit testing. applicationtesting sounds to me like gui-interaction testing. Is that correct? Should i do both or is logictest sufficient? I am considering just testing CRUD operations of objects in my logictest


I find Apple's distinction artificial and limiting. By using a different test framework (GTM in my case, or you might try GHUnit) you can just write tests without asking yourself, "Where does this test belong?" I write tests against view controllers that are not interaction tests.

0

精彩评论

暂无评论...
验证码 换一张
取 消