Hello,
I’m new to code coverage and codecov, and I don’t know if this issue I’m having is due to my settings being wrong.
I have a repository on GitHub (https://github.com/physiopy/phys2bids) that uses Travis to run CI. We’re trying to get codecoverage with codecov, but almost all the folders of the project are missing. One folder is in my codecov yaml configuration file in the “ignore” section (as I don’t want coverage for that folder), but the others are not reported anywhere.
How can I make it so codecov reads them?
I read the documentations and went through the topics here, I hope I didn’t miss anything!
I actually solved the problem: the repository is a python repository, and there was no init.py file inside the folders that were missing. Adding an empty file was enough to solve the issue.
In fact, this is a nice trick as to exclude folders that shouldn’t be tested is easier than excluding them - just don’t add the init.py file.
It might be specific to the settings of my repo, but maybe it’s something that can be generalised!