# Fail build base on code coverage results

**URL:** https://www.finalbuilder.com/forums/t/fail-build-base-on-code-coverage-results/5475
**Category:** Discussion
**Created:** [April 21, 2016, 11:23am UTC](https://www.finalbuilder.com/forums/t/fail-build-base-on-code-coverage-results/5475 "2016-04-21T11:23:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![roly445](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/roly445/32/178_2.png) [@roly445](https://www.finalbuilder.com/forums/u/roly445)
#### Post date: [April 21, 2016, 11:23am UTC](https://www.finalbuilder.com/forums/t/fail-build-base-on-code-coverage-results/5475/1 "2016-04-21T11:23:59Z")

</div>

I’m using OpenCover to perform code coverage and I to fail the build if the metrics are too low.  
  
Is this possible?  
  
Thanks

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [April 26, 2016, 6:38am UTC](https://www.finalbuilder.com/forums/t/fail-build-base-on-code-coverage-results/5475/2 "2016-04-26T06:38:10Z")

</div>

Hi,  
  
Sorry for the delay replying, we’ve just had a long holiday weekend. Continua CI doesn’t currently collect code coverage metrics, so there is no way to fail the build based on these values at the moment. This is a feature that really should be there and &nbsp;we do plan to implement this as metrics which you can use in a stage gate expression in the near future. &nbsp;

---

<div class="post-metadata">

### Author: ![roly445](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/roly445/32/178_2.png) [@roly445](https://www.finalbuilder.com/forums/u/roly445)
#### Post date: [May 12, 2016, 10:20am UTC](https://www.finalbuilder.com/forums/t/fail-build-base-on-code-coverage-results/5475/3 "2016-05-12T10:20:42Z")

</div>

Thanks, is this what’s in 1.8.0.131?
