Fail a build if code coverage is below a threshold in TFS2012

前端 未结 3 904
小鲜肉
小鲜肉 2020-12-11 02:30

I\'m trying to fail builds in TFS Service (Hosted TFS2012) when Code Coverage is below a threshold.

I\'ve been messing around with the solution at http://scrumdod.bl

3条回答
  •  無奈伤痛
    2020-12-11 03:14

    You can add your activity after the RunTests activity wherein you can query the build for code coverage attachments and merge and parse the .coverage files to pass/fail the build.

提交回复
热议问题