Specifying Location of Code Coverage Data FIle

痞子三分冷 提交于 2021-02-11 15:10:36

问题


I'm trying to integrate code coverage with Travis CI for a python repository.

In the project root, my .coveragerc looks like:

[run]
data_file = tests/coverage/.coverage
omit = data-structures/lib/*

[html]
directory = tests/coverage/html_report/

[xml]
output = tests/coverage/coverage.xml

All the attributes are reflected correctly except data_file. I see a reports file created under tests/.

I have also tried data_file = tests/coverage/, but the reports file is still created under tests/.

How do I create .coverage inside tests/coverage/?

来源:https://stackoverflow.com/questions/64703788/specifying-location-of-code-coverage-data-file

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