Skip to content

Commit 8b11788

Browse files
committed
Include extension in coverage
1 parent 6ac1bee commit 8b11788

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coverage.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
using Coverage
22
# process '*.cov' files
33
coverage = process_folder() # defaults to src/; alternatively, supply the folder name as argument
4+
push!(coverage, process_folder("ext/")...)
45

56
LCOV.writefile("lcov.info", coverage)
67

78
# process '*.info' files
89
coverage = merge_coverage_counts(
910
coverage,
1011
filter!(
11-
let prefixes = (joinpath(pwd(), "src", ""),)
12+
let prefixes = (joinpath(pwd(), "src", ""), joinpath(pwd(), "ext", ""))
1213
c -> any(p -> startswith(c.filename, p), prefixes)
1314
end,
1415
LCOV.readfolder("test"),

0 commit comments

Comments
 (0)