![]() | Ned Batchelder : Blog | Code | Text | Site Running coverage on your tests » Home : Blog : June 2011 |
Running coverage on your testsWednesday 15 June 2011 Here's a true story from the #python IRC channel, a frequently-asked question played out for real. I'm nedbat, the other nick has been changed to protect the innocent:
Moral of the story: if you have enough tests to run coverage, then your tests are a serious part of your product. You should run coverage on them, it will help. | |
Comments
It's also useful for test suites that don't have automatic test discovery (e.g. Python's own regrtest): if you add a test, but forget to add the incantation to invoke it, it will show up in your test coverage data.
Add a comment: