NAnt SDK Documentation - v0.92

NUnitTest.HaltOnFailure Property

Stop the build process if a test fails (errors are considered failures as well).

[Visual Basic]
<TaskAttribute(Name:="haltonfailure", Required:=False, ExpandProperties:=True, ProcessXml:=True), _  BooleanValidator>
Public Property HaltOnFailure As Boolean
[C#]
[TaskAttribute(Name="haltonfailure", Required=False, ExpandProperties=True, ProcessXml=True)]
[BooleanValidator]
public bool HaltOnFailure {get; set;}

See Also

NUnitTest Class | NAnt.NUnit1.Types Namespace