Language

DependsOnAttribute.ProceedOnFailure Property

Definition

Gets or sets a value indicating whether the dependent still runs when a prerequisite does not pass. Defaults to false, meaning the dependent is skipped. Set it to true for a test that must run regardless of its prerequisites' outcome, such as an audit or cleanup test; ordering is still enforced.

public bool ProceedOnFailure { get; set; }
member this.ProceedOnFailure : bool with get, set
Public Property ProceedOnFailure As Boolean

Property Value

Remarks

The flag is evaluated per dependent test rather than per edge: a test that declares several prerequisites runs past a failure only when every one of its declarations sets this to true. One declaration left at the default is therefore enough to skip the test when any of its prerequisites does not pass. That conservative direction is deliberate - opting out of waiting on one prerequisite says nothing about the others, and running a test whose remaining preconditions were never established just produces a second, misleading failure.

Applies to