feedback icon indicating copy to clipboard operation
feedback copied to clipboard

[Docs Update] Documentation about component splitting could use a better example

Open LebedevRI opened this issue 4 months ago • 2 comments

Description

Let's suppose i have the following, fairly standard, source tree:

  • src/dir1/some_name.rs
  • src/dir1/tests.rs
  • src/dir2/some_name.rs
  • src/dir2/tests/something.rs
  • src/dir2/tests/other/something.rs

How would one disable default aggregate component, which shows total coverage for everything, and add two non-overlapping components, one for .*/tests.rs$ + .*/tests/.*, and another for everything else, that is not covered by the previous component?

There are mentions of prefixing the pattern with !, but it isn't really obvious how it works.

I would think this is a fairly common situation, so it might be good to explicitly document the solution.

Page(s)

https://docs.codecov.com/docs/components

Current State

[] Broken Link [x] Unclear Language [] Inconsistent Formatting [x] Missing Information [] Missing Updates for New Features [] Deprecated Features

Additional Information

Apologies if this is filed against the wrong component...

LebedevRI avatar Jul 26 '25 07:07 LebedevRI