<categoryset>

[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.

Contains a collection of Category items.

Parameters

AttributeTypeDescriptionRequired
idstring The ID used to be referenced later. False
refidstring The ID to use as the reference. False

Nested Elements:

<import>

Adds a Category to the end of the collection.

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

</import>

</include>

<exclude>

Specifies a list of categories to exclude.

Contains a collection of Category items.

Parameters

AttributeTypeDescriptionRequired
idstring The ID used to be referenced later. False
refidstring The ID to use as the reference. False

Nested Elements:

<import>

Adds a Category to the end of the collection.

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

</import>

</exclude>

Examples

Requirements

Assembly: NAnt.NUnit2Tasks (0.85.1932.0)