# What's wrong with Coverage?

**URL:** https://discourse.julialang.org/t/whats-wrong-with-coverage/18432
**Category:** General Usage
**Created:** [December 7, 2018, 7:41pm UTC](https://discourse.julialang.org/t/whats-wrong-with-coverage/18432 "2018-12-07T19:41:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)
#### Post date: [December 7, 2018, 7:41pm UTC](https://discourse.julialang.org/t/whats-wrong-with-coverage/18432/1 "2018-12-07T19:41:05Z")

</div>

I get so many wrong results (for example [here](https://codecov.io/gh/GenericMappingTools/GMT.jl/src/master/src/psxy.jl#L268) it seems that the program execution stopped at the middle). Also tried the instructions at [Coverage.jl](https://github.com/JuliaCI/Coverage.jl#code-coverage) to run it locally but here no .cov files were generated (from Windows) and so nothing worked.

There were other reports of Coverage but never found if the problem is in Coverage.jl or at the [Coverage.io](http://Coverage.io) service.

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [December 7, 2018, 8:28pm UTC](https://discourse.julialang.org/t/whats-wrong-with-coverage/18432/2 "2018-12-07T20:28:16Z")

</div>

The problem is in Julia. [https://github.com/JuliaLang/julia/pull/30251](https://github.com/JuliaLang/julia/pull/30251) might help with it.

---

<div class="post-metadata">

### Author: ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)
#### Post date: [December 7, 2018, 11:23pm UTC](https://discourse.julialang.org/t/whats-wrong-with-coverage/18432/3 "2018-12-07T23:23:07Z")

</div>

Thanks, so cure it’s on the way

---

<div class="post-metadata">

### Author: ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)
#### Post date: [December 11, 2018, 1:12am UTC](https://discourse.julialang.org/t/whats-wrong-with-coverage/18432/4 "2018-12-11T01:12:32Z")

</div>

Got clearly better when working against nightly, but still shows several failures ([example](https://codecov.io/gh/GenericMappingTools/GMT.jl/src/master/src/plot.jl#L397))

---

<div class="post-metadata">

### Author: ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)
#### Post date: [December 27, 2018, 4:58pm UTC](https://discourse.julialang.org/t/whats-wrong-with-coverage/18432/5 "2018-12-27T16:58:25Z")

</div>

I think it was not backported to 1.0.3 right? Hence, is there any workaround for this coverage problem? I saw improvements using `--inline=no` but the tests start to take a really long time to execute.

---

<div class="post-metadata">

### Author: ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)
#### Post date: [December 27, 2018, 6:11pm UTC](https://discourse.julialang.org/t/whats-wrong-with-coverage/18432/6 "2018-12-27T18:11:17Z")

</div>

There are some improvements in 1.0.3 (my coverage increased ~5% from 0.7). Another chunk of improvements are visible using nightly builds, but there are still many failures. For example [this one](https://codecov.io/gh/GenericMappingTools/GMT.jl/src/master/src/plot.jl#L504) is reporting a docstring line as being untested!
