Missing “Code Coverage” tab on Python project

蹲街弑〆低调 提交于 2019-12-11 09:29:50

问题


I have a Python project hosted on GitHub, which I test using Azure Pipelines (here is a link to the configuration).

I am running unit tests with pytest and get coverage results, which I upload in my pipeline. I get an overall code coverage percentage in the pipeline execution summary (example), but I don't see a "Code Coverage" tab that contains the details of which lines are covered. The build artifacts contain the HTML code coverage report, which contains this information, but it'd be nicer to see it in the pipeline run page itself.

Here is the invocation of pytest:

pytest tests --doctest-modules --junitxml=junit/test-results.xml 
    --cov=callgraph --cov-report=xml --cov-report=html

What am I missing?


回答1:


that doesnt work like that, unfortunately. at least that was the case 6 months ago.

https://github.com/Microsoft/azure-pipelines-tasks/issues/7703



来源:https://stackoverflow.com/questions/53947644/missing-code-coverage-tab-on-python-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!