views:

15

answers:

0

I use testoob in the following way:

def suite():
    import unittest
    return unittest.TestLoader().loadTestsFromNames([
         'my_module.my_unittest_class',
         'my_module.my_other_unittest_class',
    ])

if __name__ == '__main__':
    import testoob
    testoob.main(defaultTest="suite")

And then run the unittest suite with the following:

python my_unittest.py --coverage=normal

This however will also print code coverage figures of all modules that my module and unittest depends on, which I'm not interested in at all. How can I configure testoob to only report coverage for my own module?