Open fbridger opened 1 month ago
I encountered the same issue and tried the following which seems to be a workaround.
Try using reportgenerator to merge the reports:
- name: Merge Coverage Reports
run: reportgenerator -reports:./coverage/**/coverage.cobertura.xml -targetdir:./coverage -reporttypes:Cobertura
Then reference the merged filename instead of the wild card
- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: ./coverage/Cobertura.xml
Bug Report
When running CCS on a solution that has multiple test projects that shares multiple libraries (common libraries) it generates multiple code coverage files.
Visual Studio Code Coverage generates the calculation correctly which generates a line coverage of 80,27%
However, CCS is calculating a line coverage of 43%. It seems CCS is not calculating the code coverage correctly for projects that are shared as they sometime have 0% coverage when they are run in other Tests projects.
Example:
Linked To
https://github.com/irongut/CodeCoverageSummary/issues/38 https://github.com/irongut/CodeCoverageSummary/issues/19