diff --git a/build/runbuild.ps1 b/build/runbuild.ps1 index 91d01794..69cb495a 100644 --- a/build/runbuild.ps1 +++ b/build/runbuild.ps1 @@ -48,7 +48,27 @@ task Restore -depends Clean -description "This task runs NuGet package restore" } } -task Compile -depends Clean, Init, Restore -description "This task compiles the solution" { +task Test -depends Clean, Init, Restore -description "This tasks runs the unit tests" { + Write-Host "Running Unit Tests..." -ForegroundColor Magenta + + $target_project = "$source_directory\MvcSiteMapProvider.Tests\MvcSiteMapProvider.Tests.csproj" + + exec { + msbuild $target_project ` + /verbosity:quiet ` + /property:Configuration=$configuration ` + "/t:Clean;Rebuild" ` + /property:WarningLevel=3 ` + /property:DefineConstants=`" MVC4`;NET40`" ` + /property:TargetFrameworkVersion=v4.0 `" + } + + exec { + &"$tools_directory\nunit\nunit-console.exe" $target_project /config:$configuration /noshadow /noresult /framework:net-4.0 + } +} + +task Compile -depends Test -description "This task compiles the solution" { Write-Host "Compiling..." -ForegroundColor Green diff --git a/tools/nunit/nunit-agent.exe b/tools/nunit/nunit-agent.exe new file mode 100644 index 00000000..6f057bc2 Binary files /dev/null and b/tools/nunit/nunit-agent.exe differ diff --git a/tools/nunit/nunit-console-runner.dll b/tools/nunit/nunit-console-runner.dll new file mode 100644 index 00000000..a2a21cee Binary files /dev/null and b/tools/nunit/nunit-console-runner.dll differ diff --git a/tools/nunit/nunit-console.exe b/tools/nunit/nunit-console.exe new file mode 100644 index 00000000..8d65c825 Binary files /dev/null and b/tools/nunit/nunit-console.exe differ diff --git a/tools/nunit/nunit.core.dll b/tools/nunit/nunit.core.dll new file mode 100644 index 00000000..b306faee Binary files /dev/null and b/tools/nunit/nunit.core.dll differ diff --git a/tools/nunit/nunit.core.interfaces.dll b/tools/nunit/nunit.core.interfaces.dll new file mode 100644 index 00000000..4053b0dd Binary files /dev/null and b/tools/nunit/nunit.core.interfaces.dll differ diff --git a/tools/nunit/nunit.framework.dll b/tools/nunit/nunit.framework.dll new file mode 100644 index 00000000..780727f2 Binary files /dev/null and b/tools/nunit/nunit.framework.dll differ diff --git a/tools/nunit/nunit.util.dll b/tools/nunit/nunit.util.dll new file mode 100644 index 00000000..122eff44 Binary files /dev/null and b/tools/nunit/nunit.util.dll differ