<mbunit>

Runs MbUnit tests.

If the task is run within a TeamCity build, the test results are reported to TeamCity. Note that due to the way MbUnit logs its test results the timing information for the tests shown by TeamCity 3.x are not valid. However, the durations shown by TeamCity 4.x and above are correct.

Parameters

AttributeTypeDescriptionRequired
report-directorystring Target output folder for the reports. False
report-filename-formatstring The report file name format for all reports except the transform report. The default value is mbunit-result-{0}{1} where {0} is replaced by the date and {1} is replaced by the time. False
report-typesstring Gets or sets the report format to generate. Valid values are: text, xml, dox, html and transform. If you specify transform, you will also have to set the transform attribute. You can set multiple values separated by a semicolon (;). False
transformfile The XSL transformation file to use for the transform report. False
transform-report-filename-formatstring The report file name format to use for the transform report. If you do not specify this value, the value from report-filename-format is used. False
workingdirdirectory The directory in which the test run will be executed. If you do not specify this value, the current directory is used. False
failonerrorbool Determines if task failure stops the build, or is just reported. The default is true. False
ifbool If true then the task will be executed; otherwise, skipped. The default is true. False
unlessbool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbosebool Determines whether the task should report detailed build log messages. The default is false. False

Nested Elements:

<assemblies>

Gets or sets the assemblies to include in the test run.

</assemblies>

<assembly-paths>

Path where the assemblies can be loaded.

</assembly-paths>

<categories>

The categories to include in and exclude from the test run (see MbUnit's FixtureCategoryAttribute).

</categories>

<authors>

Test fixtures by these authors will be included in the test run (see MbUnit's AuthorAttribute).

</authors>

<namespaces>

Test fixtures in namespaces starting with these values will be included in the test run.

</namespaces>

<types>

Test fixtures with these names (full names, that is, namespace and type name) will be included in the test run.

</types>

Examples

Requirements

Assembly: NAntExtensions.MbUnit (1.0.17.116)