How do I make coverage include not tested files?

后端 未结 2 517
温柔的废话
温柔的废话 2021-01-30 13:11

I have just started writing some unit tests for a python project I have using unittest and coverage. I\'m only currently testing a small proportion, bu

2条回答
  •  后悔当初
    2021-01-30 13:39

    Add --source=. to the coverage run line. It will both limit the focus to the current directory, and will search for .py files that weren't run at all.

提交回复
热议问题