coverage report: directories / packages as arguments

Issue #424 closed
René Fleschenberg created an issue

The coverage report command accepts a list of Python files to restrict output to those files / modules. It would be nice if one could also specify a directory / package. Currently, this doesn't work:

(django-shop)rene@rene ~/django-shop (money-tests) $ coverage report shop/money/
Name          Stmts   Miss Branch BrPart  Cover   Missing
shop/money/   NoSource: No source for code: '/home/rene/django-shop/shop/money': [Errno 21] Is a directory: '/home/rene/django-shop/shop/money'
No data to report.
(django-shop)rene@rene ~/django-shop (money-tests) $ ls shop/money  fields.pyc  __init__.pyc  iso4217.pyc  money_maker.pyc
(django-shop)rene@rene ~/django-shop (money-tests) $ 

Comments (2)

  1. Log in to comment