How can I make my CI assembly stop measuring the coverage of code (assemblies) that we did not write in our projects in the solution?
We have included code protection for our CI assembly solution in the definition of a TFS assembly. When we run code coverage locally in Visual Studio, we correctly get coverage information for only assemblies in the solution. However, when we register and the CI assembly starts covering code coverage reports in other third-party assemblies referred to by projects (both locally and on the CI assembly).
This significantly distorts the% code coverage measured in the CI assembly, as third-party assemblies have much more code blocks than our solution. Assemblies are not .net framework assemblies, but other assemblies are pulled from NuGet packages.
source
share