|
MbUnit : TestExecutionUsingMSBuild
This page last changed on Jul 02, 2005 by peli.
Executes tests in a MsBuild task. !! How to use the task ? In order to use the MbUnit task in one of your MsBuild task, you need to add a UsingTask node to the project that specifies the task name and assembly location: <UsingTask
TaskName="MbUnit.MSBuild.Tasks.MbUnit"
AssemblyFile="MbUnit.MSBuild.Tasks.dll"
/>
AttributesAll attributes only input information.
Example<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <UsingTask TaskName="MbUnit.MSBuild.Tasks.MbUnit" AssemblyFile="%ProgramFiles%\TestDriven.NET 1.0\MbUnit\MbUnit.MSBuild.Tasks.dll" /> <!-- defining test assemblies --> <ItemGroup> <TestAssemblies Include="**.Tests.dll" /> </ItemGroup> <!-- test target --> <Target Name="Tests"> <MbUnit Assemblies="@(TestAssemblies)" ReportTypes="Xml;Text;Html;Dox" ReportFileNameFormat="myreportname{0}{1}" ReportOutputDirectory="..\Somewhere" /> </Target> </Project> See Also |
| Document generated by Confluence on Jun 11, 2007 11:56 |