Py.Test : Reporting and HTML output

前端 未结 3 696
北恋
北恋 2021-02-19 01:34

This is not a technical question at all really. However, I can not locate my .HTML report that is supposed to be generated using:

py.test --cov-report htm

3条回答
  •  暖寄归人
    2021-02-19 02:22

    I think you also need to specify the directory/file you want coverage for like py.test --cov=MYPKG --cov-report=html after which a html/index.html is generated.

提交回复
热议问题