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

Add option to not run tests #51

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LocalCoverage"
uuid = "5f6e1e16-694c-5876-87ef-16b5274f298e"
authors = ["Tamas K. Papp <[email protected]>"]
version = "0.3.0"
version = "0.3.1"

[deps]
CoverageTools = "c36e975a-824b-4404-a568-ef97ca766997"
Expand Down
8 changes: 6 additions & 2 deletions src/LocalCoverage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,14 @@ If `show_summary` is true, a summary will be printed to `stdout`.
is placed in `Pkg.dir(pkg, \"$(COVDIR)\")`. The summary is in
`Pkg.dir(pkg, \"$(COVDIR)\", \"$(LCOVINFO)\")`.

If `test` is false, then existing coverage files will be used to generate the summary.

Use [`clean_coverage`](@ref) for cleaning.
"""
function generate_coverage(pkg; genhtml=true, show_summary=true, genxml=false)
Pkg.test(pkg; coverage = true)
function generate_coverage(pkg; genhtml=true, show_summary=true, genxml=false, test=true)
if test
Pkg.test(pkg; coverage = true)
end
coverage = cd(pkgdir(pkg)) do
coverage = CoverageTools.process_folder()
isdir(COVDIR) || mkdir(COVDIR)
Expand Down