Skip to content

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

@LebedevRI

Description

@LebedevRI

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...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions