# Wrong coverage number

**URL:** <https://community.codecov.com/t/wrong-coverage-number/1254>\
**Category:** Support\
**Created:** [April 12, 2020, 9:28pm UTC](https://community.codecov.com/t/wrong-coverage-number/1254 "2020-04-12T21:28:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giorgi](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/giorgi/32/677_2.png) [@Giorgi](https://community.codecov.com/u/Giorgi)\
**Post date:** [April 12, 2020, 9:28pm UTC](https://community.codecov.com/t/wrong-coverage-number/1254/1 "2020-04-12T21:28:12Z")

</div>

### Description

I use coverlet to analyze code coverage and as you can see it from this build: [AppVeyor](https://ci.appveyor.com/project/Giorgi/entityframework-exceptions/builds/32130967) it reports about 72% code coverage. On the other hand [Codecov](https://codecov.io/gh/Giorgi/EntityFramework.Exceptions) reports 62%. The same report is uploaded to coveralls as well and it is reported correctly: [Giorgi/EntityFramework.Exceptions | Coveralls - Test Coverage History & Statistics](https://coveralls.io/github/Giorgi/EntityFramework.Exceptions)

### Repository

> **[GitHub - Giorgi/EntityFramework.Exceptions: Strongly typed exceptions for Entity Framework...](https://github.com/Giorgi/EntityFramework.Exceptions)**
>
> Strongly typed exceptions for Entity Framework Core. Supports SQLServer, PostgreSQL, SQLite, Oracle and MySql.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [April 23, 2020, 2:28pm UTC](https://community.codecov.com/t/wrong-coverage-number/1254/2 "2020-04-23T14:28:36Z")

</div>

Hi @Giorgi, thanks for writing in. This actually has to do with how we calculate coverage. You can read about it here: [Frequently Asked Questions](https://docs.codecov.io/docs/frequently-asked-questions#section--how-is-coverage-calculated-)

Short story is that we do not consider partially covered lines to be covered.

If you take a look at the Appveyor build at the bottom  
[https://ci.appveyor.com/project/Giorgi/entityframework-exceptions/builds/32130967](https://ci.appveyor.com/project/Giorgi/entityframework-exceptions/builds/32130967)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/1X/8cf341323725deb70d16ce0c44ad8df6ff212756.png)

and the Codecov build  
[https://codecov.io/gh/Giorgi/EntityFramework.Exceptions/tree/151e1633930de300963497b5143978f5ddc1b08a](https://codecov.io/gh/Giorgi/EntityFramework.Exceptions/tree/151e1633930de300963497b5143978f5ddc1b08a)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/1X/f22b9e7cf8ed7ab9515db2ea70ceab8fcf701151.png)

You’ll see that the Appveyor (and presumably Coveralls) considers partials lines to be covered.

For example, for `EntityFramework.Exceptions.Sqlite`, you see that we are showing 69.23% for 9 lines covered over 13. If you include the partial line (10/13 = 76.92%), you see it match with what is showing in CI. The same came be done for each file.
