Local GUI coverage

question
testing

#1

Is there any simple way I can get nice coverage reports, with calls per line, locally? What do you guys use?

The process outlined in Coverage.jl is a bit convoluted. I’m basically looking for a local version of coveralls.io or codecov.io:

  1. edit my code
  2. run the tests
  3. see the report

All spoon-fed like…


#2
Pkg.test(...; coverage = true)

will place the statistics near the files.


#3

Thanks @Tamas_Papp, it’s just that with the visual overview that I get from coveralls.io and codecov.io it’s a lot easier to see what hasn’t been tested and where. I know I can look for all the zeros in the output files from

Pkg.test(...; coverage = true)

but… Here’s a great explanation:

I want what ProfileView.jl does for profiling, but for coverage.


#4

I understand, but AFAICT someone has yet to code this.


#5

Yap, thanks.


#6

For Python, I’ve used the HTML output of coverage.py: http://coverage.readthedocs.io/en/latest/

I wonder if that renderer could be adapted to work with Julia code…


#7

I collected a set of trivial scripts I have been using for this purpose into

Usage:

using LocalCoverage
generate_coverage(pkg)  # generate coverage information
open_coverage(pkg)      # open in a browser
clean_coverage(pkg)     # cleanup

Testing, comments, issues welcome.


#8

Super cool. :100: