Daily iOS
Testing

Testing an SDK

Say you're building a chat SDK that ships inside other companies' apps rather than an app of your own. From a testing point of view, what changes compared with testing an app?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

An SDK can't control the calling context (order, thread, OS version), so the public API contract itself and the integration path become test targets alongside the internal logic. Keep at least one set of black-box tests that use a plain import, and build a sample app on CI to protect the integration path.

Share a question