How to exclude mock package from python coverage report using nosetests

前端 未结 3 2016
南笙
南笙 2020-12-25 11:39

I currently try to use the mock library to write some basic nose unittests in python.

After finishing some basic example I now tried to use nosetests --with-co

3条回答
  •  别那么骄傲
    2020-12-25 11:52

    Create a .coveragerc file that excludes what you don't want in the report: http://nedbatchelder.com/code/coverage/config.html

提交回复
热议问题