Skip to content

Instantly share code, notes, and snippets.

@xseignard
Last active June 22, 2022 12:47
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xseignard/5420661 to your computer and use it in GitHub Desktop.
Save xseignard/5420661 to your computer and use it in GitHub Desktop.
Merge lcov files
#!/bin/bash
while read FILENAME; do
LCOV_INPUT_FILES="$LCOV_INPUT_FILES -a \"$FILENAME\""
done < <( find $1 -name lcov.info )
eval lcov "${LCOV_INPUT_FILES}" -o $1/$2
@soyuka
Copy link

soyuka commented Aug 20, 2019

Even easier: find project -name lcov.info -exec echo -a {} \; | xargs lcov -o coverage/lcov.info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment