# MSTest Code Coverage

**URL:** https://www.finalbuilder.com/forums/t/mstest-code-coverage/2352
**Category:** Discussion
**Created:** [March 5, 2015, 8:14am UTC](https://www.finalbuilder.com/forums/t/mstest-code-coverage/2352 "2015-03-05T08:14:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![garthbf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/g/77aa72/32.png) [@garthbf](https://www.finalbuilder.com/forums/u/garthbf)
#### Post date: [March 5, 2015, 8:14am UTC](https://www.finalbuilder.com/forums/t/mstest-code-coverage/2352/1 "2015-03-05T08:14:28Z")

</div>

What is the plan for supporting failing the build if MSTest unit test code coverage does not meet a coverage level?

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [March 5, 2015, 11:16am UTC](https://www.finalbuilder.com/forums/t/mstest-code-coverage/2352/2 "2015-03-05T11:16:02Z")

</div>

Hi Garth,   
  
 Looking at this quickly it shouldn’t be hard to add at all. I will look into it today. I can’t give a firm ETA as of yet. Currently the timeline is looking like I can have something to you either by close of business today, or at the latest early next week. I will keep you posted.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [March 10, 2015, 3:12am UTC](https://www.finalbuilder.com/forums/t/mstest-code-coverage/2352/3 "2015-03-10T03:12:08Z")

</div>

Hi Garth,   
  
 So it appears that this isn’t as simple as I first thought. The generated coverage file is a visual studio binary file which will require parsing to get the values out we require.   
  
 To achieve the desired failure result for the action will take some work. Currently we don’t have the resources to dedicate to this at this present point in time. I have raised an issue into our issue tracker which will go into the mix for the next set of actions to be written. Sadly at this time I can’t give you an ETA as to when this will occur.   
  
 Apologies that I can’t be of more assistance at this time.
