We are ignoring mock files and initialization files, however, we have noticed that this value is not working.
the file, however, is being picked up. we can adjust the range and that will change the colors. Also https://codecov.io/validate on the file comes back valid.
here is the file:
coverage:
precision: 2 # how many decimal places to display in the UI: 0 <= value <= 4
round: down # how coverage is rounded: down/up/nearest
range: 70...90 # custom range of coverage colors from red -> yellow -> green
status:
project: # measuring the overall project coverage
default: # context, you can create multiple ones with custom titles
enabled: yes # must be yes|true to enable this status
target: 70% # specify the target coverage for each commit status
patch: # pull requests only: this commit status will measure the
# entire pull requests Coverage Diff. Checking if the lines
# adjusted are covered at least X%.
default:
enabled: yes # must be yes|true to enable this status
target: 80% # specify the target "X%" coverage to hit
branches: null # -> see "branch patterns" below
threshold: null # allowed to drop X% and still result in a "success" commit status
if_no_uploads: error # will post commit status of "error" if no coverage reports we uploaded
# options: success, error, failure
if_not_found: success
if_ci_failed: error
ignore: # files and folders that will be removed during processing
- "**/*_mock.go"
- "**/*_init.go"
Can you please try moving it to the root? We no longer search in subdirectories since we were detecting other files in error. I’ll double check that we documented that.
i made the change: new SHA 0f92fba02d45fe76a9ff1575f759e60b651e21d0
it is picking up the yaml now, but still not accepting the ignore
config.yaml
coverage:
precision: 2 # how many decimal places to display in the UI: 0 <= value <= 4
round: down # how coverage is rounded: down/up/nearest
range: 70...90 # custom range of coverage colors from red -> yellow -> green
status:
project: # measuring the overall project coverage
default: # context, you can create multiple ones with custom titles
target: 80% # specify the target coverage for each commit status
patch: # pull requests only: this commit status will measure the
# entire pull requests Coverage Diff. Checking if the lines
# adjusted are covered at least X%.
default:
target: 75% # specify the target "X%" coverage to hit
branches: null # -> see "branch patterns" below
if_no_uploads: error # will post commit status of "error" if no coverage reports we uploaded
# options: success, error, failure
if_not_found: success
if_ci_failed: error
ignore: # files and folders that will be removed during processing
- "**/*_mock.go"
Looks like there is still some confusion. Your codecov.yml file is currently underneath the .circleci directory. Although you are using the -y option, the codecov.yml file needs to be in the root directory. This should be the fastest way to unblock you.
In other words, the file structure must look like
/
|-- .circleci
|-- codecov.yml
instead of
/
|-- .circleci
|-- codecov.yml
Please try that and let me know if it doesn’t fix your problem.