Skip to content

Exclude files from coverage analysis #12

@timholy

Description

@timholy

It would be nice to be able to exclude some source files from coverage. A good example is https://github.com/timholy/ProfileView.jl, where the precompile.jl file only runs when the package is being built, not when it gets tested. Coverage is at ~81% altogether, but the coverage of ProfileView.jl is ~91%, and the latter is the more accurate number.

A workaround is to move it to a separate directory, but to me the more attractive option is to exclude it from coverage analysis.

If there's someone who is willing to do the "actions" part of this, I can add a keyword to https://github.com/JuliaCI/CoverageTools.jl/blob/9d8fba371f4c65a7e9ca3bdaae753a52bcb22218/src/lcov.jl#L123

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions