This page last changed on Jul 02, 2005 by peli.

Executes tests in a NAnt 0.85 task.

How to use the task ?

In order to use the MbUnit task in one of your NAnt projects, you need to copy the MbUnit assemblies to the NAnt bin folder (MbUnit.Tasks.dll contains the NAnt task but relies on other assemblies as well).

Attributes

All attributes only input information.

Attribute Description Type
report-filename-format Format string for creating the report names. 0 and 1 are respectively replaced by the date and time string
report-output-directory Output folder of the reports string
report-types List of report types (separated by ; ): Xml,Html,Text or dox string

Elements

'''Element''' '''Description''' '''Type'''
assemblies List of test assemblies (required) FileSet

Example

<project>
    <target name="tests">
      <mbunit
          report-types="Text;Html;Dox;Xml"
          report-filename-format="myformat{0}{1}"
          report-output-directory="put\it\there"
          >
          <assemblies>
              <includes name="*.Tests.dll" /> 
    	 </assemblies>
     </mbunit>
    </target>
  </project>

See Also

TestExecutionUsingMSBuild

Document generated by Confluence on Jun 11, 2007 11:56