What's your approach to testing iPhone / iPad apps?

后端 未结 5 1742
南旧
南旧 2021-02-02 01:47

When developing for iPhone/iPad do you

  1. Do unit/integration/etc testing?
  2. What framework(s) do you use?
  3. What other framework(s) have you tried (if
5条回答
  •  一向
    一向 (楼主)
    2021-02-02 02:00

    Personally I only do unit-testing of classes and/or methods that makes sense to unit test and are worth the effort. In my oppinion this boils down to the following types of code:

    • Pure computational algorithms
    • Data parser of various sorts (files, internet data, etc.)
    • Methods that have a input/output relation
    • And probably one or two more I forgot about.

    I seldom use unit-testing for test of GUI-related code.

    I have only used the OCUnit/SenTesting framework shipped with iPhone so far.

    I've also found that making a short checklist of things to do as part of the release process makes up for a lot of testing. It is often not the directly test related stuff that makes problems in the product, but also the small (forgotten) steps in the build/release process.

提交回复
热议问题