1. memedough
  2. nose2-cov
  3. Issues
Issue #1 new

Statements executed on import are not captured.

ToBeReplaced ToBeReplaced
created an issue

It seems like those statements executing on import are not being captured (imports, function declarations, etc.). Maybe I am not configuring properly? For example:

foo.py:

def foo():
    pass

test_foo.py:

import unittest                                                                 

import foo                                                                      

class TestFoo(unittest.TestCase):                                               

    def test_foo(self):                                                         
        self.assertIsNone(foo.foo())

$ nose2 --plugin nose2_cov --with-cov --cov db --cov-report=term-missing

.


Ran 1 test in 0.033s

OK

----------- coverage: platform linux, python 3.3.0-final-0 -----------

Name Stmts Miss Cover Missing


foo 2 1 50% 1

Comments (1)

  1. Log in to comment