mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +02:00
Update lcov settings.
Mark any coverage less that 100% as yellow, less that 90% as red. Add comments to config file and make genhtml use it as well as lcov.
This commit is contained in:
parent
07f38f584a
commit
d34142dee8
@ -1,3 +1,17 @@
|
||||
# LCOV Settings
|
||||
|
||||
# Specify if branch coverage data should be collected and processed
|
||||
lcov_branch_coverage=1
|
||||
|
||||
# Specify the regular expression of lines to exclude from branch coverage
|
||||
lcov_excl_br_line=[A-Z_]+\(|assert\(|testBegin\(
|
||||
|
||||
# Specify the regular expression of lines to exclude
|
||||
lcov_excl_line=\{\+*uncovered|\{\+*uncoverable
|
||||
|
||||
# Coverage rate limits
|
||||
genhtml_hi_limit = 100
|
||||
genhtml_med_limit = 90
|
||||
|
||||
# Width of line coverage field in source code view
|
||||
genhtml_line_field_width = 9
|
||||
|
@ -1177,8 +1177,8 @@ eval
|
||||
if ($oStorageBackRest->exists($strLCovFile))
|
||||
{
|
||||
executeTest(
|
||||
"genhtml ${strLCovFile} --branch-coverage --show-details --output-directory" .
|
||||
" ${strBackRestBase}/test/coverage/c");
|
||||
"genhtml ${strLCovFile} --config-file=${strBackRestBase}/test/src/lcov.conf" .
|
||||
" --output-directory=${strBackRestBase}/test/coverage/c");
|
||||
|
||||
foreach my $strCodeModule (sort(keys(%{$hCoverageActual})))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user