How can I fail a TeamCity build if dotCover doesn't report a high enough result?

柔情痞子 提交于 2019-12-05 08:18:48

Are you using the latest TeamCity, ie version 7?

When setting up a build configuration you can specify this:

There are lots more options in the dropdown related to code coverage. You can also force your build to fail if you're using some other code coverage tool. For example you can echo a line to the console that will then be picked up by teamcity :

##teamcity[buildStatus status='FAILURE' text='something failed']

see official docs on this here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!