mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-01-05 13:38:58 +01:00
move to branch_coverage to avoid warning
This commit is contained in:
parent
0233ef2c3e
commit
5e9c69ccec
@ -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*%'
|
||||
|
@ -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} \
|
||||
|
Loading…
Reference in New Issue
Block a user