# Ignore failure and unit tests seuccess rate

**URL:** https://www.finalbuilder.com/forums/t/ignore-failure-and-unit-tests-seuccess-rate/4983
**Category:** Discussion
**Created:** [June 5, 2013, 5:00am UTC](https://www.finalbuilder.com/forums/t/ignore-failure-and-unit-tests-seuccess-rate/4983 "2013-06-05T05:00:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ranch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/bcef8e/32.png) [@ranch](https://www.finalbuilder.com/forums/u/ranch)
#### Post date: [June 5, 2013, 5:00am UTC](https://www.finalbuilder.com/forums/t/ignore-failure-and-unit-tests-seuccess-rate/4983/1 "2013-06-05T05:00:33Z")

</div>

Hi,

1.&nbsp; Is there an option to ignore a failure of a step, and continue to the next action or stage even if even there was a failure?

2. How do I know what is the success rate of unit tests? For example 10 out of 20 passed so I will get 50% shown or inserted into a parameter.

Cheers.

---

<div class="post-metadata">

### Author: ![davem](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@davem](https://www.finalbuilder.com/forums/u/davem)
#### Post date: [June 7, 2013, 1:45am UTC](https://www.finalbuilder.com/forums/t/ignore-failure-and-unit-tests-seuccess-rate/4983/2 "2013-06-07T01:45:14Z")

</div>

Hi,  
  
1. Currently if an action fails then that stage will also fail. Unit test actions are different however, as the test actions have an option where you can specify whether a failed test should also fail the action.  
&nbsp;

2. You can access the success rates of unit tests through the expressions $Stage.Metrics.UnitTests.PercentPassed$, $Stage.Metrics.UnitTests.PercentFailed$, $Stage.Metrics.UnitTests.PercentErrors$ and $Stage.Metrics.UnitTests.PercentNotRun$. These expressions can be used in stage gates to determine whether a stage is considered successful or has failed.

Check out our wiki page on expressions at&nbsp;[http://wiki.finalbuilder.com/pages/…eId=655772](http://wiki.finalbuilder.com/pages/viewpage.action?pageId=655772)

---

<div class="post-metadata">

### Author: ![ranch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/bcef8e/32.png) [@ranch](https://www.finalbuilder.com/forums/u/ranch)
#### Post date: [June 7, 2013, 11:51am UTC](https://www.finalbuilder.com/forums/t/ignore-failure-and-unit-tests-seuccess-rate/4983/3 "2013-06-07T11:51:56Z")

</div>

Hi,

Thanks for the reply.

Am I missing something with MSTest&nbsp; or the ignore option doesn't exists?

Cheers.

---

<div class="post-metadata">

### Author: ![davem](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@davem](https://www.finalbuilder.com/forums/u/davem)
#### Post date: [June 11, 2013, 3:02am UTC](https://www.finalbuilder.com/forums/t/ignore-failure-and-unit-tests-seuccess-rate/4983/4 "2013-06-11T03:02:12Z")

</div>

Hi,   
  
 I have added the ‘fail action if tests fail’ property to the MSTest action which should be available in the next build, which should be released today. I will let you know once the build is live

---

<div class="post-metadata">

### Author: ![davem](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@davem](https://www.finalbuilder.com/forums/u/davem)
#### Post date: [June 11, 2013, 9:32am UTC](https://www.finalbuilder.com/forums/t/ignore-failure-and-unit-tests-seuccess-rate/4983/5 "2013-06-11T09:32:14Z")

</div>

Hi,   
  
 the latest build is now live on our Continua CI’s download page (v1.0.0.2179).

---

<div class="post-metadata">

### Author: ![ranch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/bcef8e/32.png) [@ranch](https://www.finalbuilder.com/forums/u/ranch)
#### Post date: [June 12, 2013, 9:00am UTC](https://www.finalbuilder.com/forums/t/ignore-failure-and-unit-tests-seuccess-rate/4983/6 "2013-06-12T09:00:00Z")

</div>

Hi,

Thank you for the quick fix.

Cheers.
