How much code coverage is enough?

What value of code coverage is enough? This question cannot be answered because it mostly depends on the project and people working on the project. In fact, it is often better to ignore the code coverage data altogether, because it only has a limited value to decide whether tests are missing. But if you search the internet for this question, you will find a lot of different opinions on the topic. You might have to find your own answer to this question.

In my opinion, the one and only measurement to answer whether there are enough tests is your confidence. If you are confident that the code you've written is working because you've tested all the relevant aspects of it, then you have enough tests.

But, nevertheless, ...

Get Test-Driven iOS Development with Swift 4 - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.