Skip to content

Commit

Permalink
Added css to docstring and the variant method
Browse files Browse the repository at this point in the history
  • Loading branch information
jagot committed Jul 26, 2024
1 parent 57e98eb commit 7c28f2d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/LocalCoverage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,9 @@ end
"""
$(SIGNATURES)
Generate, and optionally open, the HTML coverage summary in a browser for `pkg`
inside `dir`.
Generate, and optionally open, the HTML coverage summary in a browser
for `pkg` inside `dir`. The optional keyword argument `css` can be
used to set the path to a custom CSS file styling the coverage report.
See [`generate_coverage`](@ref).
"""
Expand Down Expand Up @@ -324,9 +325,10 @@ function html_coverage(pkg = nothing;
dir = tempdir(),
test_args = [""],
folder_list = ["src"],
file_list = [])
file_list = [],
css = nothing)
gen_cov() = generate_coverage(pkg; test_args = test_args, folder_list = folder_list, file_list = file_list)
html_coverage(gen_cov(); gitroot = gitroot, open = open, dir = dir)
html_coverage(gen_cov(); gitroot = gitroot, open = open, dir = dir, css = css)
end

"""
Expand Down

0 comments on commit 7c28f2d

Please sign in to comment.