UppercuT - Automated Builds - Test Category Filters

I'm happy to announce that UppercuT now has test category filters.  The NUnit Task had them by default. To get categories added to MbUnit Task, I had to go back to the source code and add them. I followed the same format that NAnt-Extensions used:

<mbunit
    report-types="Html;Xml;Text"
    report-filename-format="${file.test_results}"
    report-output-directory="${dirs.test_results}"
    halt-on-failure="true"
    failonerror="true"
    >
  <assemblies>
    <exclude name="${dirs.build}\*Database*dll" />
    <exclude name="${dirs.build}\*.Integration*dll" />
    <exclude name="${dirs.build}\TestFu.dll" />
    <include name="${dirs.build}\*Test*dll" />
    <include name="${dirs.build}\*.Specs*dll" />
  </assemblies>
  <categories>
    <exclude name="Database" />
    <exclude name="Integration" />
    <exclude name="Slow" />
    <exclude name="NotWorking" />
    <exclude name="Ignore" />
    <exclude name="database" />
    <exclude name="integration" />
    <exclude name="slow" />
    <exclude name="notworking" />
    <exclude name="ignore" />
  </categories>
</mbunit>

That has been added in Revision 111. Keep in mind when you get the latest version, you will need to replace MbUnit.Tasks.dll in your NAnt folder as well.

With this knowledge you shall build.

 

kick it on DotNetKicks.com

Print | posted @ Saturday, June 6, 2009 12:20 PM

Comments have been closed on this topic.