move to branch_coverage to avoid warning

This commit is contained in:
Matthew Thompson 2023-11-25 14:32:28 -05:00 committed by Thomas Jensen
parent 0233ef2c3e
commit 5e9c69ccec
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ function measure_coverage()
mkdir -p "${testResultsDir}"
cp ${OUT_DIR}/*.gc* "${testResultsDir}"
lcov --capture --directory "${testResultsDir}" --base-directory ${SRC_DIR} --test-name "${tcBaseName}" --quiet \
--exclude '*/lex.yy.c' --exclude '*/parser.c' --rc lcov_branch_coverage=1 \
--exclude '*/lex.yy.c' --exclude '*/parser.c' --rc branch_coverage=1 \
--output-file "${testResultsDir}/coverage.info"
echo -n " Coverage: "
lcov --summary "${testResultsDir}/coverage.info" 2>&1 | grep 'lines...' | grep -oP '\d+\.\d*%'

View File

@ -29,7 +29,7 @@ then
mkdir -p ${testReportDir}
cp ${OUT_DIR}/*.gc* ${testResultsDir}
lcov --capture --directory ${testResultsDir} --base-directory ${SRC_DIR} --test-name ${tcBaseName} --quiet \
--exclude '*/lex.yy.c' --exclude '*/parser.c' --rc lcov_branch_coverage=1 \
--exclude '*/lex.yy.c' --exclude '*/parser.c' --rc branch_coverage=1 \
--output-file ${testResultsDir}/coverage.info
echo -n "[ Coverage ] "
genhtml --title "Boxes / Unit Tests" --branch-coverage --legend --output-directory ${testReportDir} \