Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code coverage #117

Open
kbarros opened this issue Aug 6, 2023 · 0 comments
Open

Code coverage #117

kbarros opened this issue Aug 6, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@kbarros
Copy link
Member

kbarros commented Aug 6, 2023

It would be nice to know how much of Sunny our test suite is actually testing, and maybe include a badge on the Github repo. Apparently there are a lot of Julia tools for this. To generate .cov files, use:

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

Maybe a better way to explore is LocalCoverage.jl. Some explanation here: https://tamaspapp.eu/post/julia-local-coverage/

For example,

using LocalCoverage
generate_coverage("Sunny"; genhtml=true, show_summary=true, genxml=false) # defaults shown
open_coverage("Sunny")
# then, eventually
clean_coverage(pkg; rm_directory=true)

This issue might relevant: JuliaCI/LocalCoverage.jl#31

@kbarros kbarros added the good first issue Good for newcomers label Aug 6, 2023
@kbarros kbarros removed the good first issue Good for newcomers label Jan 19, 2024
@kbarros kbarros added the good first issue Good for newcomers label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant