Ignore failure and unit tests seuccess rate

Hi,

1.  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.

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.
 

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 http://wiki.finalbuilder.com/pages/…eId=655772

Hi,

Thanks for the reply.

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

Cheers.

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

Hi,

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

Hi,

Thank you for the quick fix.

Cheers.