Legacy Codecov allowed a user to toggle the view of their coverage on a per flag basis, we'd like to bring that functionality back and include an ability to toggle by component as well. This would look like:
Toggle for each flag on the commit view
Toggle for each flag on the pull request view
Toggle for each component on the commit view
Toggle for each component on the pull request view
more details here
[Jira](https://codecovio.atlassian.net/browse/CODE-3344)
**Problem to Solve**
When a user utilizes a flag or component they do so to categorize and analyze their coverage on a more granular level than simply code coverage as a one dimensional metric. This can mean that they break coverage by unit and integration tests, or by particular team, or module of a code base. In Codecov today we give you an ability to see the % coverage of each of these breakdowns by flags and components, but:
- We don't currently allow you to see specifically what line is covered by which flag or component.
- This lack of visibility makes it difficult to determine where you need to make improvements to your code.
- For example, if I want to improve the coverage of a component called "billing," I'd want to identify where my uncovered code was within that billing module and target that with additional coverage.
**Solution**
Toggles that allow a user to turn on and off the coverage for a component or a flag when viewing coverage on a file.
**Acceptance Criteria**
V1
As a Codecov user:
On the pulls page (both impacted files and indirect changes tabs)
- I can turn on and off coverage overlays attributed to a flag
- I can turn on and off coverage overlays attributed to a component
- I can turn on and off coverage from all flags at once
- I can turn on and off coverage from all components at once
On the Commits page (both impacted files and indirect changes tabs)
- I can turn on and off coverage overlays attributed to a flag
- I can turn on and off coverage overlays attributed to a component
- I can turn on and off coverage from all flags at once
- I can turn on and off coverage from all components at once
V2
As a Codecov User:
On our file tree tab - commits, pulls, and coverage tab
- I can turn on and off coverage overlays attributed to a flag
- I can turn on and off coverage overlays attributed to a component
- I can turn on and off coverage from all flags at once
- I can turn on and off coverage from all components at once
Legacy Codecov allowed a user to toggle the view of their coverage on a per flag basis, we'd like to bring that functionality back and include an ability to toggle by component as well. This would look like:
more details here
[Jira](https://codecovio.atlassian.net/browse/CODE-3344) **Problem to Solve** When a user utilizes a flag or component they do so to categorize and analyze their coverage on a more granular level than simply code coverage as a one dimensional metric. This can mean that they break coverage by unit and integration tests, or by particular team, or module of a code base. In Codecov today we give you an ability to see the % coverage of each of these breakdowns by flags and components, but: - We don't currently allow you to see specifically what line is covered by which flag or component. - This lack of visibility makes it difficult to determine where you need to make improvements to your code. - For example, if I want to improve the coverage of a component called "billing," I'd want to identify where my uncovered code was within that billing module and target that with additional coverage. **Solution** Toggles that allow a user to turn on and off the coverage for a component or a flag when viewing coverage on a file. **Acceptance Criteria** V1 As a Codecov user: On the pulls page (both impacted files and indirect changes tabs) - I can turn on and off coverage overlays attributed to a flag - I can turn on and off coverage overlays attributed to a component - I can turn on and off coverage from all flags at once - I can turn on and off coverage from all components at once On the Commits page (both impacted files and indirect changes tabs) - I can turn on and off coverage overlays attributed to a flag - I can turn on and off coverage overlays attributed to a component - I can turn on and off coverage from all flags at once - I can turn on and off coverage from all components at once V2 As a Codecov User: On our file tree tab - commits, pulls, and coverage tab - I can turn on and off coverage overlays attributed to a flag - I can turn on and off coverage overlays attributed to a component - I can turn on and off coverage from all flags at once - I can turn on and off coverage from all components at once