NAnt-Extensions
Help
Task Reference
<mbunit> |
v1.0.17.116 |
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.| Attribute | Type | Description | Required |
|---|---|---|---|
| report-directory | string | Target output folder for the reports. | False |
| report-filename-format | string | 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-types | string | 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 |
| transform | file | The XSL transformation file to use for the transform report. | False |
| transform-report-filename-format | string | 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 |
| workingdir | directory | The directory in which the test run will be executed. If you do not specify this value, the current directory is used. | False |
| failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
| if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
| unless | bool | Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. | False |
| verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
FixtureCategoryAttribute). AuthorAttribute). Assembly.dll and generates one HTML (Assembly.Report.html) and one XML (Assembly.Report.xml) report in the reports directory. Test progress is reported (verbose="true").
<mbunit report-types="html;xml"
report-filename-format="Assembly.Report"
report-directory="reports"
verbose="true"
workingdir="build-directory">
<assemblies>
<include name="build-directory/Assembly.dll" />
</assemblies>
</mbunit>
Assembly.dll except those marked with FixtureCategoryAttribute("Integration"). Does not generate test reports and does not report progress.
<mbunit workingdir="build-directory">
<assemblies>
<include name="build-directory/Assembly.dll" />
</assemblies>
<categories>
<exclude name="Integration" />
</categories>
</mbunit>