Search code examples
azure-devops

Ignoring Failures on VSTest Task


We have a VSTest task that is getting a few failures, but we'd like to continue the pipeline anyway. Is there a way to ignore failures, like there is on the PublishTestResults task?


Solution

  • VSTest task has "Continue on error" checkbox under "Control Options".

    Enabling this checkbox will allow you to continue the pipeline by ignoring the failures.

    if you are using YAML file, for VSTest step, use

    continueOnError: true

    to ignore the failures.