# Code coverage works poorly in Julia 0.7

**URL:** https://discourse.julialang.org/t/code-coverage-works-poorly-in-julia-0-7/14522
**Category:** General Usage
**Created:** [September 4, 2018, 8:03am UTC](https://discourse.julialang.org/t/code-coverage-works-poorly-in-julia-0-7/14522 "2018-09-04T08:03:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bennedich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bennedich/32/4894_2.png) [@bennedich](https://discourse.julialang.org/u/bennedich)
#### Post date: [September 4, 2018, 8:03am UTC](https://discourse.julialang.org/t/code-coverage-works-poorly-in-julia-0-7/14522/1 "2018-09-04T08:03:13Z")

</div>

As we upgraded from Julia 0.6 to Julia 0.7, our code test coverage jumped from 73% to 87%. Looking more closely at the coverage report, it is now very inaccurate. Lines are missed, or counted double. Entire functions and files that are not run are not included at all in the report.

I’ve looked at coverage reports for other Julia 0.7 and 1.0 projects, and it seems the same everywhere.

Even with `--inline==no` I get incorrect results.

There’s a [github issue](https://github.com/JuliaLang/julia/issues/28192), but it doesn’t seem to attract a lot of attention.

Did anyone else reflect over this? Thoughts? Workarounds?

---

<div class="post-metadata">

### Author: ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)
#### Post date: [September 4, 2018, 9:43am UTC](https://discourse.julialang.org/t/code-coverage-works-poorly-in-julia-0-7/14522/2 "2018-09-04T09:43:59Z")

</div>

I noticed similar things. I get 100% coverage reports on files that are only loaded with requires or never actually loaded at all.

Don’t trust the green lights.
