Skip to content
Snippets Groups Projects
Verified Commit a8959f61 authored by Levente Polyak's avatar Levente Polyak :rocket:
Browse files

fix(coverage): do not suppress errors and print statistics

parent d89ce4bc
No related branches found
No related tags found
1 merge request!48fix(coverage): do not suppress errors and print statistics
......@@ -15,10 +15,16 @@ test:
code-coverage:
script:
- pacman -Syu --needed --noconfirm podman make jq
- make test-coverage 2>/dev/null
- "echo \"Percent coverage: $(jq -r .percent_covered coverage/bats.*/coverage.json)%\""
- make test-coverage
- jq -r '. |
["Percent covered", .percent_covered],
["Covered lines", .covered_lines],
["Total lines", .total_lines],
["Percent low", .percent_low],
["Percent high", .percent_high] | @tsv' coverage/bats.*/coverage.json
tags:
- vm
coverage: '/Percent covered\s+\d+\.\d+/'
artifacts:
reports:
coverage_report:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment