You can use the top-level ignore:
key to tell Codecov to ignore certain paths.
Add a list of paths (folders or file names) to your codecov.yml file under the ignore key to exclude files from being collected by Codecov. Ignored files will be skipped during processing.
📘Things to note
File paths will be read as regex patterns, so special characters in regex will need to be escaped using
\\
prior to the character, an example being+
which would require\\+
to be processed correctly.The pattern
folder/*
will not match recursively in the folder.
Please use thisfolder/**/*
, which will exclude all files within the given folder.
# sample regex patterns
ignore:
- "path/to/folder" # ignore folders and all its contents
- "test_.*.rb" # regex accepted
- "**/*.py" # glob accepted
The following are examples of different rules and how they behave followed by a corresponding directory with the ignored files called out for clarity.
This rule will ignore everything in the top level project2 folder and everything underneath it, but will NOT ignore project 2 underneath the src/ folder.
Sample file tree:
├── src/
├── project1/
├── 1A.py
├── 1B.py
├── 1C.py
├── coverage/
├── coverage.xml
├── project2/
├── 2A.py
├── 2B.py
├── 2C.py
├── coverage/
├── coverage.xml
├── project3/
├── 3A.py
├── test_3A.rb
├── 3B.py
├── test_3B.rb
├── 3C.py
├── test_3C.rb
├── coverage/
├── coverage.xml
├── project2/
├── 2A.py
├── 2B.py
├── 2C.py
├── coverage/
├── coverage.xml
Ignored files:
This rule will ignore any files at any depth that start with "test_" and end with ".rb".
Sample file tree:
├── src/
├── project1/
├── 1A.py
├── 1B.py
├── 1C.py
├── project2/
├── 2A.py
├── 2B.py
├── 2C.py
├── project3/
├── 3A.py
├── test_3A.rb
├── 3B.py
├── test_3B.rb
├── 3C.py
├── test_3C.rb
├── project4/.
├── test_4A.rb
├── test_4B.rb
├── test_4C.rb
Ignored files:
This rule will ignore any file at any depth that ends in ".py".
Sample file tree:
├── src/
├── project1/
├── 1A.py
├── 1B.py
├── 1C.py
├── project2/
├── 2A.py
├── 2B.py
├── 2C.py
├── project3/
├── 3A.py
├── test_3A.rb
├── 3B.py
├── test_3B.rb
├── 3C.py
├── test_3C.rb
├── project4/.
├── test_4A.rb
├── test_4B.rb
├── test_4C.rb
Ignored files:
This rule will ignore any files in any folder that have "coverage" as part of the name.
Sample file tree:
├── src/
├── project1/
├── 1A.py
├── 1B.py
├── 1C.py
├── coverage/
├── coverage.xml
├── project2/
├── 2A.py
├── 2B.py
├── 2C.py
├── coverage/
├── coverage.xml
├── project3/
├── 3A.py
├── test_3A.rb
├── 3B.py
├── test_3B.rb
├── 3C.py
├── test_3C.rb
├── coverage/
├── coverage.xml
├── project2/.
├── 2A.py
├── 2B.py
├── 2C.py
├── coverage/
├── coverage.xml
├── coverage/
├── coverage.xml
Ignored files:
Updated over 1 year ago
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4