Daily iOS
Testing

Reading coverage

An iOS payment app has 90% line coverage, yet payment failure handling regresses every release. What does that 90% guarantee, and what does it fail to guarantee?

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

Coverage is only the share of lines the tests executed, so it says nothing about whether an assertion actually verified the result, or whether a scenario like a failed payment exists in the tests at all.

Share a question