Daily iOS
Testing

Test types and the pyramid

What's the difference between unit tests, integration tests, and UI tests?

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

A unit test isolates one function or type and runs in milliseconds, an integration test checks that several modules really mesh, and a UI test launches the app and walks a user scenario end to end. The higher you go, the slower, flakier, and more expensive it gets.

Share a question