Skip whole file with "pragma"

Issue #300 duplicate
Thomas Güttler created an issue

It would be very nice, if you could skip a file without a command line argument.

It would be nice to be able to tell coverage "ignore this file", but inside it.

Usecase: there are some files in our repos which are not from us. Example: We need to have argparse on old python distributions. I don't wont to write a unittest for this file, since it is well tested and not modified by us. And if there is no unittest for it, it will bring down our coverage score.

Comments (1)

  1. Log in to comment