This project is read-only.
This task enables you to instruct CCNet to run the unit tests contained within a collection of assemblies. The results of the unit tests will be automatically included in the CCNet build results. This can be useful if you have some unit tests that you want to run as part of the integration process, but you don't need as part of your developer build process. For example, if you have a set of integration tests that you want to run in a separate build process, it is easy to set up a project to use this task.

  <mbunit>
    <timeout>600</timeout>
    <assemblies>
      <assembly>foo.dll</assembly>
    </assemblies>
    <executable>d:\temp\mbunit-console.exe</executable>
    <outputfile>mbunit-results.xml</outputfile>
    <assemblypath>c:\assemblies</assemblypath>
    <transformfile>c:\trans.xsl</transformfile>
    <filters>
      <filterCategories>
        <category name="Bar" />
      </filterCategories>
      <excludeCategories>
        <category name="Foo" />
      </excludeCategories>
      <authors>
        <author>Ryan</author>
      </authors>
      <types>
        <type>Foo.Bar.Blarg</type>
      </types>
      <namespaces>
        <ns>Foo.Bar</ns>
      </namespaces>
    </filters>
  </mbunit>

Name Description Required Type Default
timeout The number of seconds that the mbunit process will run before timing out false integer 600
assemblies A collection of assembly files true collection
executable Path to the mbunit-console.exe true string
outputfile The file that MbUnit will write the test results to false string mbunit-results.xml
assemblypath Used to locate the MbUnit dlls needed to run the tests in your assembly if they aren't in the directory you're calling the runner from false string
transformfile Specifies the location of a XSLT stylesheet to be applied to the report once it has been generated. false string
filters See below: false Filters


Filters
Name Description Required Type Default
filterCategories Specifies that only those test fixtures decorated with the FixtureCategory attribute and categoryName will be run in this execution of MbUnit.Cons. false Category collection
excludeCategories Specifies that those test fixtures decorated with the FixtureCategory attribute and categoryName will not be run in this execution of MbUnit.Cons. false Category collection
authors Specifies that only those test fixtures decorated with the Author attribute and authorName will be run in this execution of MbUnit.Cons false author collection
types Specifies that only those tests of the type className will be run in this execution of MbUnit.Cons. false type collection
namespaces Specifies that only those tests in the named namespace will be run in this execution of MbUnit.Cons. false ns colleciton


Note:
The Category elements changed with the 1.0.430.10581 release. This is because the RssBuildsPublisher also defines a
Category element so now they both use the same Category element.

Last edited Jul 26, 2008 at 5:41 AM by camalot, version 5

Comments

No comments yet.