From f30de7b4ef98cac44f4331b9acafb0bee2715308 Mon Sep 17 00:00:00 2001 From: Tommy Hofmann Date: Mon, 25 Dec 2023 11:59:31 +0100 Subject: [PATCH 1/2] Add option to not run tests --- src/LocalCoverage.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/LocalCoverage.jl b/src/LocalCoverage.jl index b70416c..76504ed 100644 --- a/src/LocalCoverage.jl +++ b/src/LocalCoverage.jl @@ -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) From 46d78be958ca8ba0d11f5db720b626854fd2d608 Mon Sep 17 00:00:00 2001 From: Tommy Hofmann Date: Mon, 25 Dec 2023 11:59:45 +0100 Subject: [PATCH 2/2] Bump version to 0.3.1 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 0febb6f..869c2ff 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LocalCoverage" uuid = "5f6e1e16-694c-5876-87ef-16b5274f298e" authors = ["Tamas K. Papp "] -version = "0.3.0" +version = "0.3.1" [deps] CoverageTools = "c36e975a-824b-4404-a568-ef97ca766997"