Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
"You typically exclude test code from code coverage reports" -- I actually don't do this for one specific reason: sometimes it reveals tests that aren't actually being run, or test fixtures that aren't actually being used. Like if I see tests/foobar.py at less than 100% coverage I immediately go "hey that's weird" and look inside to see what in that file isn't being exercised as part of a test run.