"coverage combine" should error if no coverage

Issue #412 resolved
meejah
created an issue

If you run "coverage combine" and there is no .coverage file (or .coverage.* files) it will run without error and produce a .coverage that is "empty" (i.e. has the comment and then an empty dict).

It seems more intuitive that it should be an error to try and combine nothing.

Comments (4)

  1. Ned Batchelder repo owner

    It's simple enough to make the command fail, by making Coverage.combine() raise an exception, but the nose coverage plugin calls combine early on, and it will stop working if I do this.

    A little more thought...

  2. Log in to comment