VSTS Code Coverage Error?

Has anyone experienced this VSTS Coverage code “error? ” Do you have any suggestions?

I do code coverage analysis with Visual Studio, which is now a simple task with tools included. However, I have a problem that I cannot overcome. Say I have assemblies A, B, C, and D and tagged them all for coverage analysis. I run the tests and look at the results and find a report containing A, B and C, but not D. I research and find that no tests actually execute any code in D (let's say this is the asp.net front interface and I do not use user interface testing yet). Since there are no tests for D calling D that are not in the report, the total percentage of code coverage and “blocks not covered” are incorrect.

Does anyone know how I can do one of the following?

  • Calculate the total number of blocks in D so that I can set up the coverage report correctly to be correct?
  • Get a coverage report to automatically show the number of blocks not covered for assemblies that are designed to be covered but not tested at all?

While I want to improve testing coverage, I analyze coverage reports stored at historical times in the code base. Thus, I do not want to create a test that simply runs at least 1 block of code in each assembly and recalculates the test coverage by running the tests. This would be a rather time consuming exercise for what seems like a simple problem.

+3
source share
1 answer

, . DLL, /kb , dlls, . , , DLL, dll. , , , DLL . , .

, LOC ( ) LOC, . , , .

, , - , ( ).

+2

Source: https://habr.com/ru/post/1697417/


All Articles