When using dotCover in a TeamCity build configuration, is there an environment variable for percent coverage of the code?

When using TeamCity to manage .net projects, we like to use dotCover to evaluate code coverage. In the past, using NCover , there was a way to get the percentage of code coverage using an environment variable.

We liked it, and we set up a project description for using this variable so that you can easily see the code coverage in the toolbar (overview). I believe that NCover had a specific output variable available to TeamCity. I don’t remember exactly what it was, but I think it was something like:

%env.ncover.coverage%

Does anyone know how to do this using dotCover with TeamCity? I understand that it can be 3 meanings; 1 for classes, 1 for a method, and 1 for expressions.

+3
source share
1 answer

TeamCity publishes coverage percentage as statistics. Unfortunately, this is done after all the build steps have been completed. You can write a server-side plugin that will make the data available. Please describe why you do not need it? Perhaps the TeamCity REST plugin can solve this problem.

+1
source

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


All Articles