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/?
reportsfile at some point earlier.