I am working on Test Coverage Aggregation.
Build config A:
Build config B:
Build config C:
Build config Z: This config performs the overall test coverage. It needs to merge the source code from Build config A, B, C using source mapping.
Build config A, B, C are independent. and should be run independently for the better performance.
According to https://grahamthecoder.wordpress.com/2014/08/14/merge-teamcity-dotcover-reports-into-overall-code-coverage/, to be able to see the source code in code coverage, in Configuration settings of Build config Z, there should be parameter : "dotNetCoverage.dotCover.source.mapping" which has the value in this form “%dep.yourDependencyId.teamcity.build.checkoutDir% => %system.teamcity.build.checkoutDir%”.
The value on the left side of => is the source base directory and the value on right side is the current build config's checkout directory on which the code coverage will be performed.
This will provide source code only from one Build config. I tried adding one more entry for this parameter for the source code from another Build config. But as a result, it does not show any source code under Code coverage tab.
Is there any way to merge the source code from different config to perform overall code coverage? As well as to be able to see the source code in the coverage under Code Coverage tab?