There has been a lot of great information over at Andrew's blog about testing and build systems, but this has mainly been focused around NAnt - I prefer the SDC Build Tools, mainly for it's innate support for MS applications such as Commerce Server, Biztalk 2004, IIS 6 etc.
So following on from my Making Code Coverage more palatable with NCoverViewer and NCoverBrowser article I thought I'd post the SDC task that executes NUnit and NCover on our conchango.netFusion class library:
<run
section="RunNCover"
path="Tools\NCover\ncover.console.exe"
parameters='/o SmokeTest\coverage.xml /c "Tools\NUnit\nunit-console.exe" "$(CurrentFolder)\..\Src\Conchango.netFusion.nunit /xml ..\..\Build\SmokeTest\nunit.xml" /a "Conchango.Code.UnitTests,Conchango.Code.Validation,Conchango.Core,Conchango.Drawing.ImageEngine,Conchango.Runtime.Serialization,
Conchango.Security.Cryptography,Conchango.Web.Framework,Conchango.Web.MasterPages,Conchango.Web.UI,Conchango.Web.UI.WebControls.ComboBox"'
stopOnError="true"
workingDirectory=""
waitForExit="true"/>