25 lines
1.0 KiB
XML
25 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- This is a msbuild wrapper to facilitate running the NUnit tests -->
|
|
|
|
<!-- Set the primary target as the "test" -->
|
|
<Project DefaultTargets="Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<!-- Load nunit support -->
|
|
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
|
|
|
|
<!-- Wrap the existing solution -->
|
|
<Target Name="Build">
|
|
<Message Text="Starting to Build"/>
|
|
<MSBuild Projects="SensorDB.sln" Properties="Configuration=Release" Targets="Rebuild"/>
|
|
</Target>
|
|
|
|
<!-- Run Nunit. This runs second because of DependsOnTargets -->
|
|
<Target Name="Test" DependsOnTargets="Build">
|
|
<Message Text="Starting to Test"/>
|
|
<NUnit Assemblies="SensorDBNunit\bin\release\sensordb nunit.dll"
|
|
ContinueOnError="true"
|
|
ToolPath="C:\Program Files\NUnit 2.4.8\bin"
|
|
OutputXmlFile="NUnitResults.xml" />
|
|
</Target>
|
|
</Project> |