<categories>

[This is preliminary documentation and subject to change.]

Controls the categories of tests to execute using the <nunit2> task.

Parameters

Attribute Type Description Required
id string The ID used to be referenced later. False
refid string The ID to use as the reference. False

Nested Elements:

<include>

Specifies a list of categories to include.

Represents a certain group of test cases or fixtures.

Parameters

AttributeTypeDescriptionRequired
namestring A name of a category, or comma-separated list of names. True
ifbool If true then the category will be processed; otherwise, skipped. The default is true. False
unlessbool If true then the category will be skipped; otherwise, processed. The default is false. False

</include>

<exclude>

Specifies a list of categories to exclude.

Represents a certain group of test cases or fixtures.

Parameters

AttributeTypeDescriptionRequired
namestring A name of a category, or comma-separated list of names. True
ifbool If true then the category will be processed; otherwise, skipped. The default is true. False
unlessbool If true then the category will be skipped; otherwise, processed. The default is false. False

</exclude>

Examples

Requirements

Assembly: NAnt.NUnit2Tasks (0.86.3402.0)