All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

[Codecov] What is the difference between patch and project coverage?

Post cover: [Codecov] What is the difference between patch and project coverage?
Table of contentsClick link to navigate to the desired location
This content has been automatically translated from Ukrainian.
Codecov — is a service for analyzing code coverage with tests that integrates with CI/CD and shows how much code is actually executed during testing. The service has two main indicators: patch i project coverage. They are about different things, and it is important to understand this in order to correctly evaluate the results in pull requests.
Приклад показника покриття Codecov Patch
Приклад показника покриття Codecov Patch

What is Patch coverage?

Patch coverage <TAG1> is test coverage of only those lines of code that have been changed in a particular PR. That is, if you have added or changed several methods, Codecov will show how well these changes are covered. This helps focus on the quality of new or updated parts of the code.

What is Project coverage?

Project coverage <TAG1> is the big picture. It shows the percentage of test coverage of the entire project on the current branch. If even changes in PR are well covered by tests, but in general there are few tests on the project, this indicator will be low.
Therefore, ideally, it is worth following both metrics: so that the new code has a good patch coverage and does not worsen the overall project coverage.

This post doesn't have any additions from the author yet.

Що таке debounce у JavaScript і чому це важливо?
21 Mar 16:39

Що таке debounce у JavaScript і чому це важливо?

meme code
meme code@memecode
What is CFB (Cipher Feedback)?
21 Mar 16:53

What is CFB (Cipher Feedback)?

meme code
meme code@memecode
Що таке XOR і як він працює?
21 Mar 17:05

Що таке XOR і як він працює?

meme code
meme code@memecode
Embed програмування: що це таке і з чого почати
24 Mar 16:48

Embed програмування: що це таке і з чого почати

meme code
meme code@memecode
Pessimistic Lock у Rails: що це таке і коли застосовувати. Які є альтернативи?
31 Mar 17:45

Pessimistic Lock у Rails: що це таке і коли застосовувати. Які є альтернативи?

meme code
meme code@memecode
Why does PostgreSQL skip ID when saving new records? (Heroku)
31 Mar 19:13

Why does PostgreSQL skip ID when saving new records? (Heroku)

meme code
meme code@memecode
How do Scratch courses help children develop soft skills?
11 Apr 18:24

How do Scratch courses help children develop soft skills?

meme code
meme code@memecode
24 Apr 20:17

Фіксимо minikube "You are trying to run the amd64 binary on an M1 system."

meme code
meme code@memecode
24 Apr 20:55

Фіксимо minikube на Mac з М1 (відмовляємось від qemu, запускаємо на docker)

meme code
meme code@memecode
Where can I find the older version of Google Chrome and download it? On the example of an old Mac
25 Apr 23:02

Where can I find the older version of Google Chrome and download it? On the example of an old Mac

meme code
meme code@memecode
09 May 19:27

[FIXED] cannot load such file -- html/pipeline (LoadError) виникає під час rails generate thredded:install

meme code
meme code@memecode
Задача: Перетворення римського числа на десяткове (Ruby)
20 May 12:05

Задача: Перетворення римського числа на десяткове (Ruby)

meme code
meme code@memecode