Yoda
Yoda

Reputation: 18068

Visual Studio Test task partially succeeds instead of failing when some tests fail

The Visual Studio Test task partially succeeds thus the stage of the pipeline also partially succeeds, but I want the stage to fail if any tests fail(but wait until all test run). Is that possible?

Upvotes: 0

Views: 266

Answers (1)

Leo Liu
Leo Liu

Reputation: 76790

Visual Studio Test task partially succeeds instead of failing when some tests fail

This could be because you have selected "Continue Error" under "Control Options".

enter image description here

According to the document How to: Ignore errors in tasks:

The ContinueOnError attribute of the Task element controls whether a build stops or continues when a task failure occurs. This attribute also controls whether errors are treated as errors or warnings when the build continues.

Upvotes: 1

Related Questions