I opened a PR that updates our repository codecov.yml file to added some ignore paths. Unfortunately the paths I’ve tried have not been picked up and are being included in the coverage report for that PR.
My codecov.yml file looks like this:
coverage:
status:
project:
default:
target: auto
threshold: 0%
base: auto
patch:
default:
target: auto
threshold: 0%
base: auto
ignore:
Pods
MyProject/Source/Components/Logging/CrashlyticsDestination.swift
MyProject/Source/Generated
MyProject/Source/Utility/Simulation.swift
MyProject/Source/UITesting
MyProject/Source/Components/AppDelegate Services
MyProject/Source/Wrappers
I’ve tried various ways of building the paths, including doing something like **/Wrapper for example. Unfortunately no matter what I try in the yml file works. However, if I tell Slather to ignore these files, it works fine. I’d like to leverage Codecov as much as possible for this so that I’m not maintain coverage in two separate places.
According to the docs, Codecov should be using the codecov.yml file in the branch, and not the master version. Short of this, I’m running out of ideas.
Also, if I specify the path in the project and patch sections, Pods is still included.
Thanks @drazisi. Question:l Are the ignore paths relative to the “paths” listed in the “project” and “patch” section, or is it global from the root of the project / base where the codecov.yml file exists?
Our validate endpoint is a little…confused… right now. Once we finish deploying all the new things it relies on, we’ll get it fixed. Sorry it was incorrect.
For now, please trust the yaml reference in the docs.