title: Run nose2 with coverage for installed package
body: <p>I got some of our project packages installed in a <code>venv</code> by a jenkins job. After installing, the job pulls some unittests from a separate repository and runs them against the installed package.</p>
  
  <p>My problem is <code>coverage</code> only covers the test scripts but not the installed packages.</p>
  
  <p>Here's the folder structure:</p>
  
  <pre><code>JenkinsWorkspace
  |_Venv
  |_MyProject
    |_trunk
      |_Python   
      |_Package1
      |_Package2
        |_temp_tests
          |_test_suite1.py
          |_...
  </code></pre>
  
  <p>So for further explanation, I iterate over the packages in <code>MyProject</code>, checkout the tests for each one into <code>temp_tests</code>, <code>cd</code> in <code>temp_tests</code> and call <code>nose2 -t ..\..\..\Venv\Lib\site-packages</code></p>
  
  <p>I thought the <code>-t</code> param would set the top level directory, and use the stuff installed there. And yes, the tests run succesfully. But the <code>coverage</code> only covers the test suites themselves.
  Is there a way to tell nose to do the coverage for the installed package?</p>
  
  <p>For completeness here my <code>unittest.cfg</code>:</p>
  
  <pre><code>[coverage]
  coverage-report = term-missing
  always-on = True
  coverage-config = .coveragerc
  
  [junit-xml]
  always-on = True
  keep_restricted = False
  path = nose2-junit.xml
  test_fullname = False
  </code></pre>
  
  <p>and <code>.coveragerc</code>:</p>
  
  <pre><code># .coveragerc
  [run]
  branch = True
  [report]
  show_missing = True
  omit = 
      build/*
      tests/*
      setup.py
      */__init__.py
  </code></pre>