Can't get coverage from multiple test folders for C++

Hi @Fabian,

FYI this is what we do on our side if it can help:

mkdir ${BWRAPPER_GCOV_DIR}
pushd ${BWRAPPER_GCOV_DIR}
for f in `find our/build/folder -name '*.o'`
do
  echo "Processing $f file..."
  gcov -o ${f} x
done
popd

and then we set -Dsonar.cfamily.gcov.reportsPath=${BWRAPPER_GCOV_DIR} property during analysis.

1 Like