JuliaCI/PkgTemplates.jl

Visualize detailed coverage information on GitLab

Open

#199 opened on Jul 4, 2020

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Julia (697 stars) (112 forks)batch import
help wantednew-feature

Description

Thanks a lot for this package, it's been very useful to set up a package on GitLab.!

There is one thing I couldn't figure out though. I'm running "code coverage" after testing, and I got the corresponding code on the gitlab-ci.yml config file:

.coverage:
  coverage: /Test coverage (\d+\.\d+%)/
  after_script:
    - |
      julia -e '
        using Pkg
        Pkg.add("Coverage")
        using Coverage
        c, t = get_summary(process_folder())
        using Printf
        @printf "Test coverage %.2f%%\n" 100c / t'

However, this just gives an overall number. Is there a way to visualize this coverage information, that is, file by file, line in codecov GitHub hosted packages? Or is it a limitation of GitLab that one has only access to a final number (overall coverage percentage)?

EDIT: please feel free to close if this is off-topic and coverage visualization is not done via the gitlab-ci.yml config file that PkgTemplates generates.

Contributor guide