Dashboard > MbUnit > ... > MbUnit Home > TestExecutionUsingNAnt
  MbUnit Log In View a printable version of the current page.  
  TestExecutionUsingNAnt
Added by Jonathan de Halleux, last edited by Jonathan de Halleux on Jul 02, 2005  (view change)
Labels: 
(None)

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

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators