How to handle multiple coverage reports


Our code is written in C and I use gcov to get its coverage reports.
The code is an MPI program and runs in parallel. Therefore, I will have multiple .gcda/.gcov files (in separate directories) generated by different MPI ranks for the same source file. Can codecov handle this case and how?

I read the example at, but it is too simple and I don’t know if it requires the .gcov files to be in the same directory as the source file.
Thank you.

Hi @jczhang07, yes Codecov handles multiple coverage reports and multiple builds. We should have no problem with your use case.