NAnt SDK Documentation - v0.92

Categories Class

Controls the categories of tests to execute using the NUnit2Task.

For a list of all members of this type, see Categories Members.

System.Object
   NAnt.Core.Element
      NAnt.Core.DataTypeBase
         NAnt.NUnit2.Types.Categories

[Visual Basic]
<ElementName(Name:="categories")>
Public Class Categories
    Inherits DataTypeBase
[C#]
[ElementName(Name="categories")]
public class Categories : DataTypeBase

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

Only include test cases and fixtures that require no internet access.

    
<categories>
    <include name="NoInternetAccess" />
</categories>
    
  

Exclude test cases and fixtures that are known to fail.

    
<categories>
    <exclude name="NotWorking" />
</categories>
    
  

Requirements

Namespace: NAnt.NUnit2.Types

Assembly: NAnt.NUnit2Tasks (in NAnt.NUnit2Tasks.dll)

See Also

Categories Members | NAnt.NUnit2.Types Namespace