We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9422431 + 3f6417b commit 30fc90bCopy full SHA for 30fc90b
.gitlab-ci.yml
@@ -36,9 +36,15 @@ unittest:
36
using Pkg
37
Pkg.add("Coverage")
38
using Coverage
39
- c, t = get_summary(process_folder())
+ coverage = process_folder()
40
+ coverage = merge_coverage_counts(coverage, filter!(
41
+ let prefixes = (joinpath(pwd(), "src", ""),)
42
+ c -> any(p -> startswith(c.filename, p), prefixes)
43
+ end,
44
+ LCOV.readfolder("test")))
45
+ covered_lines, total_lines = get_summary(coverage)
46
using Printf
- @printf "Test coverage %.2f%%\n" 100c / t'
47
+ @printf "Test coverage %.2f%%\n" 100 * covered_lines / total_lines'
48
rules:
49
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'dev' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'main'
50
0 commit comments