title: Can I restrict nose coverage output to directory (rather than package)?
body: <p>My SUT looks like:</p>
  
  <pre><code>foo.py
  bar.py
  tests/__init__.py [empty]
  tests/foo_tests.py
  tests/bar_tests.py
  tests/integration/__init__.py [empty]
  tests/integration/foo_tests.py
  tests/integration/bar_tests.py
  </code></pre>
  
  <p>When I run <code>nosetests --with-coverage</code>, I get details for all sorts of
  modules that I'd rather ignore.  But I can't use the
  <code>--cover-package=PACKAGE</code> option because <code>foo.py</code> &amp; <code>bar.py</code> are not in a
  package.  (See the thread after
  <a href="http://lists.idyll.org/pipermail/testing-in-python/2008-November/001091.html" rel="noreferrer">http://lists.idyll.org/pipermail/testing-in-python/2008-November/001091.html</a>
  for my reasons for not putting them in a package.)</p>
  
  <p>Can I restrict coverage output to just foo.py &amp; bar.py?</p>
  
  <p><strong>Update</strong> - Assuming that there isn't a better answer than <a href="https://stackoverflow.com/users/97828/nadia">Nadia</a>'s below, I've asked a follow up question: <a href="https://stackoverflow.com/questions/855265/how-do-i-write-some-bash-shell-script-to-convert-all-matching-filenames-in-dire">"How do I write some (bash) shell script to convert all matching filenames in directory to command-line options?"</a></p>