What is a reasonable code coverage % for unit tests (and why)?

Technology CommunityCategory: TestingWhat is a reasonable code coverage % for unit tests (and why)?
VietMX Staff asked 3 years ago

Code coverage is great, but functionality coverage is even better. I don’t believe in covering every single line I write. But I do believe in writing 100% test coverage of all the functionality I want to provide (even for the extra cool features I came with myself and which were not discussed during the meetings).

I don’t care if I would have code which is not covered in tests, but I would care if I would refactor my code and end up having a different behaviour. Therefore, 100% functionality coverage is my only target.